{"action":"closed","issue":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-model-bundle/issues/288","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-model-bundle/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-model-bundle/issues/288/comments","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-model-bundle/issues/288/events","html_url":"https://github.com/open-orchestra/open-orchestra-model-bundle/issues/288","id":73062189,"number":288,"title":"StatusableTrait wrongly configured","user":{"login":"juchi","id":3333098,"avatar_url":"https://avatars.githubusercontent.com/u/3333098?v=3","gravatar_id":"","url":"https://api.github.com/users/juchi","html_url":"https://github.com/juchi","followers_url":"https://api.github.com/users/juchi/followers","following_url":"https://api.github.com/users/juchi/following{/other_user}","gists_url":"https://api.github.com/users/juchi/gists{/gist_id}","starred_url":"https://api.github.com/users/juchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juchi/subscriptions","organizations_url":"https://api.github.com/users/juchi/orgs","repos_url":"https://api.github.com/users/juchi/repos","events_url":"https://api.github.com/users/juchi/events{/privacy}","received_events_url":"https://api.github.com/users/juchi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-04T16:13:38Z","updated_at":"2015-05-05T12:44:19Z","closed_at":"2015-05-05T12:44:19Z","body":"The Statusable trait has a $status property with @ODM\\EmbedOne(targetDocument=\"EmbedStatus\") configured. However when using the trait in another bundle, doctrine looks for an EmbedStatus class in the current namespace of the entity using the trait.\r\nUsing the full name of the class in the trait, i.e. @ODM\\EmbedOne(targetDocument=\"OpenOrchestra\\ModelBundle\\Document\\EmbedStatus\") solves the problem.\r\nMaybe there's another solution ?"}}