{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/984","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/984/comments","events_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/984/events","html_url":"https://github.com/doctrine/mongodb-odm/pull/984","id":50307642,"number":984,"title":"Consider discrimanted Embeds in index generation","user":{"login":"malarzm","id":4947711,"avatar_url":"https://avatars.githubusercontent.com/u/4947711?v=3","gravatar_id":"","url":"https://api.github.com/users/malarzm","html_url":"https://github.com/malarzm","followers_url":"https://api.github.com/users/malarzm/followers","following_url":"https://api.github.com/users/malarzm/following{/other_user}","gists_url":"https://api.github.com/users/malarzm/gists{/gist_id}","starred_url":"https://api.github.com/users/malarzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malarzm/subscriptions","organizations_url":"https://api.github.com/users/malarzm/orgs","repos_url":"https://api.github.com/users/malarzm/repos","events_url":"https://api.github.com/users/malarzm/events{/privacy}","received_events_url":"https://api.github.com/users/malarzm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doctrine/mongodb-odm/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/milestones/6","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/milestones/6/labels","id":682517,"number":6,"title":"1.0.0-BETA12","description":"","creator":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":38,"state":"open","created_at":"2014-06-05T18:50:43Z","updated_at":"2015-02-13T22:02:56Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-11-27T16:26:47Z","updated_at":"2015-02-16T12:02:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/pulls/984","html_url":"https://github.com/doctrine/mongodb-odm/pull/984","diff_url":"https://github.com/doctrine/mongodb-odm/pull/984.diff","patch_url":"https://github.com/doctrine/mongodb-odm/pull/984.patch"},"body":"Related discussion: https://github.com/doctrine/mongodb-odm/issues/225#issuecomment-63811609\r\n\r\nLong story short ``SchemaManager`` needs ``targetDocument`` specified to go deeper while creating indexes. With this modification documents specified in ``discriminatorMap`` will also be checked for any indexes defined there.\r\n\r\ncc @bensquire"},"comment":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/comments/74498775","html_url":"https://github.com/doctrine/mongodb-odm/pull/984#issuecomment-74498775","issue_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/984","id":74498775,"user":{"login":"malarzm","id":4947711,"avatar_url":"https://avatars.githubusercontent.com/u/4947711?v=3","gravatar_id":"","url":"https://api.github.com/users/malarzm","html_url":"https://github.com/malarzm","followers_url":"https://api.github.com/users/malarzm/followers","following_url":"https://api.github.com/users/malarzm/following{/other_user}","gists_url":"https://api.github.com/users/malarzm/gists{/gist_id}","starred_url":"https://api.github.com/users/malarzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malarzm/subscriptions","organizations_url":"https://api.github.com/users/malarzm/orgs","repos_url":"https://api.github.com/users/malarzm/repos","events_url":"https://api.github.com/users/malarzm/events{/privacy}","received_events_url":"https://api.github.com/users/malarzm/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T12:02:45Z","updated_at":"2015-02-16T12:02:45Z","body":"@jmikola typo is fixed"}}