{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1294","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1294/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1294/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1294/events","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1294","id":20395200,"number":1294,"title":"Multiple User classes for different entity managers","user":{"login":"drgomesp","id":696982,"avatar_url":"https://avatars.githubusercontent.com/u/696982?v=3","gravatar_id":"","url":"https://api.github.com/users/drgomesp","html_url":"https://github.com/drgomesp","followers_url":"https://api.github.com/users/drgomesp/followers","following_url":"https://api.github.com/users/drgomesp/following{/other_user}","gists_url":"https://api.github.com/users/drgomesp/gists{/gist_id}","starred_url":"https://api.github.com/users/drgomesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgomesp/subscriptions","organizations_url":"https://api.github.com/users/drgomesp/orgs","repos_url":"https://api.github.com/users/drgomesp/repos","events_url":"https://api.github.com/users/drgomesp/events{/privacy}","received_events_url":"https://api.github.com/users/drgomesp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2013-10-02T13:52:44Z","updated_at":"2016-08-04T21:47:01Z","closed_at":null,"body":"Hey!\r\n\r\nI use multiple entity managers, as this is a common use case for any symfony application, but I want to have two different `User` entities, with different relationships and fields, for each entity manager.\r\n\r\nCurrently I have both entities already extending the base `User` class, but only the one that uses the default entity manager gets the database correctly setup on the `schema:update` command.\r\n\r\nThe other table remains only with the `id` field.\r\n\r\nAny solutions for that? Maybe I need to change the manager at runtime, somehow..."},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/comments/237693716","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1294#issuecomment-237693716","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1294","id":237693716,"user":{"login":"khalid-s","id":7849198,"avatar_url":"https://avatars.githubusercontent.com/u/7849198?v=3","gravatar_id":"","url":"https://api.github.com/users/khalid-s","html_url":"https://github.com/khalid-s","followers_url":"https://api.github.com/users/khalid-s/followers","following_url":"https://api.github.com/users/khalid-s/following{/other_user}","gists_url":"https://api.github.com/users/khalid-s/gists{/gist_id}","starred_url":"https://api.github.com/users/khalid-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khalid-s/subscriptions","organizations_url":"https://api.github.com/users/khalid-s/orgs","repos_url":"https://api.github.com/users/khalid-s/repos","events_url":"https://api.github.com/users/khalid-s/events{/privacy}","received_events_url":"https://api.github.com/users/khalid-s/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T21:47:01Z","updated_at":"2016-08-04T21:47:01Z","body":"i do agree with @stof that its not a common use case to have multiple user manager and FOSUser cannot handle this as this would imply too much complexity (for as far as I am concern, the most common case scenarios you only need 1 user manager) for all fosuser community.\r\n\r\nBut I also agree that its often happens that we do need to handle multiple user managers and would be great if there was a bundle for it :-)"}}
{"actor":{"display_login":"khalid-s"}}