{"action":"created","issue":{"url":"https://api.github.com/repos/api-platform/schema-generator/issues/34","labels_url":"https://api.github.com/repos/api-platform/schema-generator/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/api-platform/schema-generator/issues/34/comments","events_url":"https://api.github.com/repos/api-platform/schema-generator/issues/34/events","html_url":"https://github.com/api-platform/schema-generator/pull/34","id":114425482,"number":34,"title":"Handle several parent types if useInterface configuration is set to true","user":{"login":"Matthieu-Lescieux","id":5393070,"avatar_url":"https://avatars.githubusercontent.com/u/5393070?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthieu-Lescieux","html_url":"https://github.com/Matthieu-Lescieux","followers_url":"https://api.github.com/users/Matthieu-Lescieux/followers","following_url":"https://api.github.com/users/Matthieu-Lescieux/following{/other_user}","gists_url":"https://api.github.com/users/Matthieu-Lescieux/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthieu-Lescieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthieu-Lescieux/subscriptions","organizations_url":"https://api.github.com/users/Matthieu-Lescieux/orgs","repos_url":"https://api.github.com/users/Matthieu-Lescieux/repos","events_url":"https://api.github.com/users/Matthieu-Lescieux/events{/privacy}","received_events_url":"https://api.github.com/users/Matthieu-Lescieux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-31T18:15:16Z","updated_at":"2015-10-31T21:58:55Z","closed_at":"2015-10-31T18:57:48Z","pull_request":{"url":"https://api.github.com/repos/api-platform/schema-generator/pulls/34","html_url":"https://github.com/api-platform/schema-generator/pull/34","diff_url":"https://github.com/api-platform/schema-generator/pull/34.diff","patch_url":"https://github.com/api-platform/schema-generator/pull/34.patch"},"body":"Types can now implement fields of several parents (and their parents) by using interfaces.\r\nIf you don't to want implement a parent field, set the abstract configuration of this type to true and the generator will generate the interface only.\r\n\r\nExemple of generated interface for VideoGame\r\n\r\n``` php\r\n/**\r\n * A video game is an electronic game that involves human interaction with a user interface to generate visual feedback on a video device.\r\n * \r\n * @see http://schema.org/VideoGame Documentation on Schema.org\r\n */\r\ninterface VideoGameInterface extends SoftwareApplicationInterface, GameInterface\r\n{\r\n    /**\r\n     * Sets gamePlatform.\r\n     * \r\n     * @param string $gamePlatform\r\n     * \r\n     * @return $this\r\n     */\r\n    public function setGamePlatform($gamePlatform);\r\n\r\n    /**\r\n     * Gets gamePlatform.\r\n     * \r\n     * @return string\r\n     */\r\n    public function getGamePlatform();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/api-platform/schema-generator/issues/comments/152775952","html_url":"https://github.com/api-platform/schema-generator/pull/34#issuecomment-152775952","issue_url":"https://api.github.com/repos/api-platform/schema-generator/issues/34","id":152775952,"user":{"login":"Matthieu-Lescieux","id":5393070,"avatar_url":"https://avatars.githubusercontent.com/u/5393070?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthieu-Lescieux","html_url":"https://github.com/Matthieu-Lescieux","followers_url":"https://api.github.com/users/Matthieu-Lescieux/followers","following_url":"https://api.github.com/users/Matthieu-Lescieux/following{/other_user}","gists_url":"https://api.github.com/users/Matthieu-Lescieux/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthieu-Lescieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthieu-Lescieux/subscriptions","organizations_url":"https://api.github.com/users/Matthieu-Lescieux/orgs","repos_url":"https://api.github.com/users/Matthieu-Lescieux/repos","events_url":"https://api.github.com/users/Matthieu-Lescieux/events{/privacy}","received_events_url":"https://api.github.com/users/Matthieu-Lescieux/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T21:58:55Z","updated_at":"2015-10-31T21:58:55Z","body":"I have found a bug on the PR, when I don't specify types in schema.yml. I'm working on it now. I may reopen the PR if you want but you shouldn't merge it with master."}}