{"action":"created","issue":{"url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/543","repository_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions","labels_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/543/comments","events_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/543/events","html_url":"https://github.com/Atlantic18/DoctrineExtensions/issues/543","id":8995765,"number":543,"title":"[Sortable] Using the discriminator column as sortable group","user":{"login":"baurelien","id":1292225,"avatar_url":"https://avatars.githubusercontent.com/u/1292225?v=3","gravatar_id":"","url":"https://api.github.com/users/baurelien","html_url":"https://github.com/baurelien","followers_url":"https://api.github.com/users/baurelien/followers","following_url":"https://api.github.com/users/baurelien/following{/other_user}","gists_url":"https://api.github.com/users/baurelien/gists{/gist_id}","starred_url":"https://api.github.com/users/baurelien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baurelien/subscriptions","organizations_url":"https://api.github.com/users/baurelien/orgs","repos_url":"https://api.github.com/users/baurelien/repos","events_url":"https://api.github.com/users/baurelien/events{/privacy}","received_events_url":"https://api.github.com/users/baurelien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2012-12-04T19:37:49Z","updated_at":"2016-07-21T17:58:50Z","closed_at":null,"body":"Hi,\nIs there a way to use the discriminator column as the sortable group?\n\nDoctrine do not allow to redeclare the discriminator in the entity mapping, so the following code do not work :\n\n```php\n/**\n * @ORM\\Entity\n * @ORM\\InheritanceType(\"SINGLE_TABLE\")\n * @ORM\\DiscriminatorColumn(name=\"discr\", type=\"string\")\n * @ORM\\DiscriminatorMap({\"task_priority\" = \"TaskPriority\", \"ticket_priority\" = \"TicketPriority\"})\n */\nclass Priority\n{\n    /**\n     * @Gedmo\\SortablePosition\n     * @ORM\\Column(name=\"position\", type=\"integer\")\n     */\n    private $position;\n\n    /**\n     * @Gedmo\\SortableGroup\n     * @ORM\\Column(name=\"discr\", type=\"string\", length=25)\n     */\n    private $discr;\n\n    // ...\n}\n\n/**\n * @ORM\\Entity\n */\nclass TaskPriority extends Priority\n{\n    // ...\n}\n```"},"comment":{"url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/comments/234333248","html_url":"https://github.com/Atlantic18/DoctrineExtensions/issues/543#issuecomment-234333248","issue_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/543","id":234333248,"user":{"login":"l3pp4rd","id":132389,"avatar_url":"https://avatars.githubusercontent.com/u/132389?v=3","gravatar_id":"","url":"https://api.github.com/users/l3pp4rd","html_url":"https://github.com/l3pp4rd","followers_url":"https://api.github.com/users/l3pp4rd/followers","following_url":"https://api.github.com/users/l3pp4rd/following{/other_user}","gists_url":"https://api.github.com/users/l3pp4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/l3pp4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l3pp4rd/subscriptions","organizations_url":"https://api.github.com/users/l3pp4rd/orgs","repos_url":"https://api.github.com/users/l3pp4rd/repos","events_url":"https://api.github.com/users/l3pp4rd/events{/privacy}","received_events_url":"https://api.github.com/users/l3pp4rd/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T17:58:50Z","updated_at":"2016-07-21T17:58:50Z","body":"in non ugly way, do not use inheritance at least in database layer :)"}}
{"actor":{"display_login":"l3pp4rd"}}