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
This PR was submitted for the 6.4 branch but it was merged into the 5.4 branch instead.
Discussion
----------
Update associations.rst
Added caution block that informs about the risks of generated convenience "add" and "remove" methods on the inverse side.
We wasted hours for debugging an "Out of memory" error. In our case we have emails that are connected to users who can access those emails (many-to-many). There is a very large amount of emails. The memory was exceeded when we called `$email->addUser($user)` because the generated code checked if the user already has that email.
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).
-->
Commits
-------
2f88c8c Update associations.rst
0 commit comments