mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
When the origin inverse side use for loop collection, the change set of owning side is reset. #6186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kevintoshi0208 on GitHub (Feb 23, 2019).
Bug Report
Summary
There is a One To Many RelationShip.
The owing side is Transaction, and the inverse side is Supplier.
When the origin inverse side collection for loop ,the owning side is reset.
How can I do that ?
@Ocramius commented on GitHub (Feb 23, 2019):
Could you reduce the code example a bit? I'm not sure if I understand the issue. Is the association being overwritten by lazy loading?
@kevintoshi0208 commented on GitHub (Feb 25, 2019):
Thank you for your keyword. I solved it by setting the fetch options of both side to EAGER .