{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/25834","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/25834/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/25834/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/25834/events","html_url":"https://github.com/symfony/symfony/issues/25834","id":289617537,"number":25834,"title":"[PropertyInfo] DoctrineExtractor - There is bug when indexBy is meta key id","user":{"login":"insekticid","id":177340,"avatar_url":"https://avatars2.githubusercontent.com/u/177340?v=4","gravatar_id":"","url":"https://api.github.com/users/insekticid","html_url":"https://github.com/insekticid","followers_url":"https://api.github.com/users/insekticid/followers","following_url":"https://api.github.com/users/insekticid/following{/other_user}","gists_url":"https://api.github.com/users/insekticid/gists{/gist_id}","starred_url":"https://api.github.com/users/insekticid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insekticid/subscriptions","organizations_url":"https://api.github.com/users/insekticid/orgs","repos_url":"https://api.github.com/users/insekticid/repos","events_url":"https://api.github.com/users/insekticid/events{/privacy}","received_events_url":"https://api.github.com/users/insekticid/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":297305416,"url":"https://api.github.com/repos/symfony/symfony/labels/PropertyInfo","name":"PropertyInfo","color":"dddddd","default":false},{"id":237003792,"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-18T12:50:41Z","updated_at":"2018-05-03T14:18:20Z","closed_at":"2018-05-03T14:18:20Z","author_association":"CONTRIBUTOR","body":"There is bug when indexBy is meta key id introduced in doctrine pull\r\nhttps://github.com/doctrine/doctrine2/pull/639\r\noriginally from issue\r\nhttps://github.com/doctrine/doctrine2/issues/3094\r\nhttps://github.com/doctrine/doctrine2/issues/1784\r\n\r\nBuggy line is\r\nhttps://github.com/symfony/symfony/blob/6e6ac9eaeec9e6a6cc0ab003cac3738460542b0a/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php#L99\r\n\r\nwhere `$typeOfField = $subMetadata->getTypeOfField($indexProperty);` returns `null` \r\n-> `$collectionKeyType = $this->getPhpType($typeOfField);` returns `null`\r\n-> `return array(new Type(null)` throws `throw new \\InvalidArgumentException(sprintf('\"\" is not a valid PHP type.', $builtinType));`\r\n\r\nI discoverred this bug when I attached Api Platform ApiLoader\r\nhttps://github.com/api-platform/core/blob/master/src/Bridge/Symfony/Routing/ApiLoader.php#L108\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/386311322","html_url":"https://github.com/symfony/symfony/issues/25834#issuecomment-386311322","issue_url":"https://api.github.com/repos/symfony/symfony/issues/25834","id":386311322,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars0.githubusercontent.com/u/1957048?v=4","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T14:18:20Z","updated_at":"2018-05-03T14:18:20Z","author_association":"MEMBER","body":"fixed in #25841"}}
{"actor":{"display_login":"xabbuh"}}