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
@karakum changes might still happen without $em->persist(), depending on the tracking policy. However, $em->flush() is a must. Would you be able to send us a functional test reproducing this issue? It would be quite helpful 👍
@karakum unfortunately, there's just no documentation for that: #7765
Changing this is a BC break but I believe we have to find a solution to overcome what @guilhermeblanco mentioned in the commit and still make this managed by the UoW.
Bug Report
Summary
This code was added a long-long ago in 2011 year...
356f587#r33750844
Current behavior
$collection->removeElement($el)
execute sql DELETE before(without)$em->persist()
&$em->flush()
.How to reproduce
1 Many-to-many collection with
fetch="EXTRA_LAZY"
2 Remove element from collection
Expected behavior
There must no DB changes be made without
$em->persist()
&$em->flush()
The text was updated successfully, but these errors were encountered: