mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11934] Fix JoinedSubclassPersister when multiple entities are inserted #13350
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/11934
State: closed
Merged: Yes
Same fix as in base/BasicEntityPersister class - https://github.com/doctrine/orm/blob/2.20.3/src/Persisters/Entity/BasicEntityPersister.php#L310. Missed in https://github.com/doctrine/orm/pull/10735.
I have extracted this from reworked #8260 which will target v3.x.
The fix can be verified by modifying UnitOfWork to execute
BasicEntityPersister::executeInserts()for multiple entities at once for the same entity class/persister instance - https://github.com/doctrine/orm/blob/2.20.3/src/UnitOfWork.php#L1186 - then reproducible onDoctrine\Tests\ORM\Functional\Ticket\GH10531Test::testInsertstest.As extending/modifying UnitOfWork in tests in not easily possible, I submit this fix for v2.x without a test.