{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/7094","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7094/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7094/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7094/events","html_url":"https://github.com/doctrine/doctrine2/issues/7094","id":300060575,"number":7094,"title":"Relationships with @Embedded column","user":{"login":"ivaaaan","id":10375456,"avatar_url":"https://avatars1.githubusercontent.com/u/10375456?v=4","gravatar_id":"","url":"https://api.github.com/users/ivaaaan","html_url":"https://github.com/ivaaaan","followers_url":"https://api.github.com/users/ivaaaan/followers","following_url":"https://api.github.com/users/ivaaaan/following{/other_user}","gists_url":"https://api.github.com/users/ivaaaan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivaaaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivaaaan/subscriptions","organizations_url":"https://api.github.com/users/ivaaaan/orgs","repos_url":"https://api.github.com/users/ivaaaan/repos","events_url":"https://api.github.com/users/ivaaaan/events{/privacy}","received_events_url":"https://api.github.com/users/ivaaaan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-25T20:58:32Z","updated_at":"2018-02-25T21:01:23Z","closed_at":"2018-02-25T21:01:23Z","author_association":"NONE","body":"Environment: PHP 7.1.7\r\nDoctrine: 2.6\r\nSymfony: 4\r\n\r\nI have `@Embeddable` class for id:\r\n\r\n    /**\r\n     * @ORM\\Embeddable()\r\n     */\r\n    final class Id\r\n    {\r\n        /**\r\n         * @ORM\\Id()\r\n         * @ORM\\Column(type=\"string\")\r\n         */\r\n        private $id;\r\n\r\n        //getters, setters, etc\r\n    }\r\n\r\nAnd two classes that have `@ManyToOne` relationship:\r\n\r\n    /**\r\n     * @ORM\\Entity()\r\n     */\r\n    final class Gist\r\n    {\r\n        /**\r\n         * @var Id\r\n         *\r\n         * @ORM\\Id()\r\n         * @ORM\\Embedded(class=\"App\\Entity\\Id\")\r\n         */\r\n        private $id;\r\n    \r\n        /**\r\n         * @var User\r\n         *\r\n         * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\User\")\r\n         */\r\n        private $user;\r\n\r\n        //getters, setters, etc\r\n    }\r\n\r\nAnd `User` class:\r\n\r\n    /**\r\n     * @ORM\\Entity()\r\n     */\r\n    final class User implements UserInterface\r\n    {\r\n        /**\r\n         * @var Id\r\n         *\r\n         * @ORM\\Embedded(class=\"App\\Entity\\Id\")\r\n         *\r\n         */\r\n        private $id;\r\n\r\n        //getters, setters, etc\r\n\r\n    }\r\n\r\nWhen I trying to create schema I got error: `No mapping found for field 'id' on class 'App\\Entity\\User'.`. "},"comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments/368344174","html_url":"https://github.com/doctrine/doctrine2/issues/7094#issuecomment-368344174","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7094","id":368344174,"user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars2.githubusercontent.com/u/154256?v=4","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"created_at":"2018-02-25T21:01:23Z","updated_at":"2018-02-25T21:01:23Z","author_association":"OWNER","body":"Support of identifiers within `@Embeddable` is not really there yet, sorry."}}
{"actor":{"display_login":"Ocramius"}}