{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/652","repository_url":"https://api.github.com/repos/sonata-project/SonataUserBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/652/comments","events_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/652/events","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/652","id":119248384,"number":652,"title":"Fix MongoDB Support","user":{"login":"Id4v","id":4057774,"avatar_url":"https://avatars.githubusercontent.com/u/4057774?v=3","gravatar_id":"","url":"https://api.github.com/users/Id4v","html_url":"https://github.com/Id4v","followers_url":"https://api.github.com/users/Id4v/followers","following_url":"https://api.github.com/users/Id4v/following{/other_user}","gists_url":"https://api.github.com/users/Id4v/gists{/gist_id}","starred_url":"https://api.github.com/users/Id4v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Id4v/subscriptions","organizations_url":"https://api.github.com/users/Id4v/orgs","repos_url":"https://api.github.com/users/Id4v/repos","events_url":"https://api.github.com/users/Id4v/events{/privacy}","received_events_url":"https://api.github.com/users/Id4v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T21:28:49Z","updated_at":"2016-05-19T12:31:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/652","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/652","diff_url":"https://github.com/sonata-project/SonataUserBundle/pull/652.diff","patch_url":"https://github.com/sonata-project/SonataUserBundle/pull/652.patch"},"body":"As stated in #450 MongoDB support is not working properly.\r\n\r\n`Sonata\\Document\\BaseUser` extends `FOSUser\\Entity\\User` via the extends of `Sonata\\Model\\User`.\r\n\r\nThis causes a severe bug in the MongoDB Support (All FosUser fields are missing).\r\n\r\nI chose to delete the `Model\\User` class and duplicate the fields in both `Document\\BaseUser` and `Entity\\BaseUser`. \r\nNot sure this is the best solution, but this is the only one I can think of, as we cannot use Traits for PHP5.3 support.\r\n\r\nIn addition, the `SonataUserExtension` was loading the `serializer.xml` file no matter what manager was used.\r\nHowever the service declared in this file depends on an \"orm\" service, causing an \"Service not found\" error.\r\nNow it is loaded only if the manager is orm."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/comments/220310264","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/652#issuecomment-220310264","issue_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/652","id":220310264,"user":{"login":"SonataCI","id":12843093,"avatar_url":"https://avatars.githubusercontent.com/u/12843093?v=3","gravatar_id":"","url":"https://api.github.com/users/SonataCI","html_url":"https://github.com/SonataCI","followers_url":"https://api.github.com/users/SonataCI/followers","following_url":"https://api.github.com/users/SonataCI/following{/other_user}","gists_url":"https://api.github.com/users/SonataCI/gists{/gist_id}","starred_url":"https://api.github.com/users/SonataCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonataCI/subscriptions","organizations_url":"https://api.github.com/users/SonataCI/orgs","repos_url":"https://api.github.com/users/SonataCI/repos","events_url":"https://api.github.com/users/SonataCI/events{/privacy}","received_events_url":"https://api.github.com/users/SonataCI/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T12:31:37Z","updated_at":"2016-05-19T12:31:37Z","body":"Could you please rebase your PR and fix merge conflicts?"}}