You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #559 RFC: Always enforce updating inverse side for Comment (bocharsky-bw)
This PR was merged into the master branch.
Discussion
----------
RFC: Always enforce updating inverse side for Comment
It's an edge case, but what do you think about always updating inverse side in adder/remover methods?
For example, currently this code won't update inverse side properly:
```php
$comment = new Comment();
$post->getComments()->add($comment);
// but then if we will call adder method
$post->addComment($comment); // Comment::$post is still equals null here due to the failed `!contains()` check in it
```
Commits
-------
b5342c1 Always enforce updating inverse side for Comment
0 commit comments