{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/5952","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5952/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5952/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5952/events","html_url":"https://github.com/doctrine/doctrine2/issues/5952","id":167031440,"number":5952,"title":"Association not escaping fieldname","user":{"login":"Michal-sk","id":2051648,"avatar_url":"https://avatars.githubusercontent.com/u/2051648?v=3","gravatar_id":"","url":"https://api.github.com/users/Michal-sk","html_url":"https://github.com/Michal-sk","followers_url":"https://api.github.com/users/Michal-sk/followers","following_url":"https://api.github.com/users/Michal-sk/following{/other_user}","gists_url":"https://api.github.com/users/Michal-sk/gists{/gist_id}","starred_url":"https://api.github.com/users/Michal-sk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michal-sk/subscriptions","organizations_url":"https://api.github.com/users/Michal-sk/orgs","repos_url":"https://api.github.com/users/Michal-sk/repos","events_url":"https://api.github.com/users/Michal-sk/events{/privacy}","received_events_url":"https://api.github.com/users/Michal-sk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doctrine/doctrine2/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/doctrine/doctrine2/labels/Missing%20Tests","name":"Missing Tests","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-22T12:05:56Z","updated_at":"2016-07-25T05:08:19Z","closed_at":null,"body":"```php\r\nclass Option\r\n{\r\n    /**\r\n     * @var int\r\n     * @ORM\\Column(name=\"`group`\", type=\"smallint\")\r\n     */\r\n    private $group;\r\n\r\n    /**\r\n     * @var Collection\r\n     * @ORM\\ManyToMany(targetEntity=\"Acme\\Domain\\Entity\\Option\\Option\", inversedBy=\"dependingOptions\")\r\n     * @ORM\\JoinTable(\r\n     *     name=\"acme_opties_relaties\",\r\n     *     joinColumns={@ORM\\JoinColumn(name=\"id_a\", referencedColumnName=\"id\")},\r\n     *     inverseJoinColumns={@ORM\\JoinColumn(name=\"id_b\", referencedColumnName=\"id\")}\r\n     * )\r\n     */\r\n    private $requiredOptions;\r\n\r\n    /**\r\n     * @var Collection\r\n     * @ORM\\ManyToMany(targetEntity=\"Acme\\Domain\\Entity\\Option\\Option\", mappedBy=\"requiredOptions\")\r\n     */\r\n    private $dependingOptions;\r\n\r\n    /**\r\n     * @param Relation $r\r\n     * @return Criteria\r\n     */\r\n    private function getRelationCriteria(Relation $relation): Criteria\r\n    {\r\n        return Criteria::create()->where(\r\n            Criteria::expr()->eq('soort', $relation->getValue())\r\n        );\r\n    }\r\n\r\n    public function getRequiredOptions()\r\n    {\r\n        return $this->requiredOptions->matching($this->getRelationCriteria(Relation::get(Relation::DEPEND)));\r\n    }\r\n}\r\n```\r\n\r\nNow just loading a `Option`, everything is fine. But when calling `Option::getRequiredOptions()` the `group` field name is not escaped."},"comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments/234841924","html_url":"https://github.com/doctrine/doctrine2/issues/5952#issuecomment-234841924","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5952","id":234841924,"user":{"login":"Michal-sk","id":2051648,"avatar_url":"https://avatars.githubusercontent.com/u/2051648?v=3","gravatar_id":"","url":"https://api.github.com/users/Michal-sk","html_url":"https://github.com/Michal-sk","followers_url":"https://api.github.com/users/Michal-sk/followers","following_url":"https://api.github.com/users/Michal-sk/following{/other_user}","gists_url":"https://api.github.com/users/Michal-sk/gists{/gist_id}","starred_url":"https://api.github.com/users/Michal-sk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michal-sk/subscriptions","organizations_url":"https://api.github.com/users/Michal-sk/orgs","repos_url":"https://api.github.com/users/Michal-sk/repos","events_url":"https://api.github.com/users/Michal-sk/events{/privacy}","received_events_url":"https://api.github.com/users/Michal-sk/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T05:08:19Z","updated_at":"2016-07-25T05:08:19Z","body":"Is there maybe a difference betwee Sqlite and MySQL? When i play around with `ManyToManySelfReferentialAssociationTest` and the `ECommerceProduct`, i added a `group` property and that does seem to be quoted / escaped"}}
{"actor":{"display_login":"Michal-sk"}}