mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11014] Fix pruning all collections in table for inherited elements. #12763
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?
Original Pull Request: https://github.com/doctrine/orm/pull/11014
State: closed
Merged: No
When we have two collections with inherited types in one entity, in this example it's
PetStorecontainingCatandDogAnd we clear one of them using
clear(), second gets cleared too, due to DELETE statement without proper filter.I think it's bug.
There is fix and test for it.
Bypass before this is merged:
Instead of using
load collection, and clear elements manually in your code