{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/559","repository_url":"https://api.github.com/repos/symfony/symfony-demo","labels_url":"https://api.github.com/repos/symfony/symfony-demo/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-demo/issues/559/comments","events_url":"https://api.github.com/repos/symfony/symfony-demo/issues/559/events","html_url":"https://github.com/symfony/symfony-demo/pull/559","id":227479337,"number":559,"title":"RFC: Always enforce updating inverse side for Comment","user":{"login":"bocharsky-bw","id":3317635,"avatar_url":"https://avatars0.githubusercontent.com/u/3317635?v=3","gravatar_id":"","url":"https://api.github.com/users/bocharsky-bw","html_url":"https://github.com/bocharsky-bw","followers_url":"https://api.github.com/users/bocharsky-bw/followers","following_url":"https://api.github.com/users/bocharsky-bw/following{/other_user}","gists_url":"https://api.github.com/users/bocharsky-bw/gists{/gist_id}","starred_url":"https://api.github.com/users/bocharsky-bw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocharsky-bw/subscriptions","organizations_url":"https://api.github.com/users/bocharsky-bw/orgs","repos_url":"https://api.github.com/users/bocharsky-bw/repos","events_url":"https://api.github.com/users/bocharsky-bw/events{/privacy}","received_events_url":"https://api.github.com/users/bocharsky-bw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-09T19:56:12Z","updated_at":"2017-05-10T15:35:34Z","closed_at":"2017-05-10T15:26:53Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony-demo/pulls/559","html_url":"https://github.com/symfony/symfony-demo/pull/559","diff_url":"https://github.com/symfony/symfony-demo/pull/559.diff","patch_url":"https://github.com/symfony/symfony-demo/pull/559.patch"},"body":"It's an edge case, but what do you think about always updating inverse side in adder/remover methods?\r\n\r\nFor example, currently this code won't update inverse side properly:\r\n```php\r\n$comment = new Comment();\r\n$post->getComments()->add($comment);\r\n// but then if we will call adder method\r\n$post->addComment($comment); // Comment::$post is still equals null here due to the failed `!contains()` check in it\r\n```"},"comment":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/comments/300521601","html_url":"https://github.com/symfony/symfony-demo/pull/559#issuecomment-300521601","issue_url":"https://api.github.com/repos/symfony/symfony-demo/issues/559","id":300521601,"user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars0.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T15:35:34Z","updated_at":"2017-05-10T15:35:34Z","body":"Did this recommendation changed recently? Do you have some links to docs or GitHub issues/PRs? Thanks!"}}
{"actor":{"display_login":"javiereguiluz"}}