Indexed one-to-many not setting the original entity property in PersistentCollection #5458

Open
opened 2026-01-22 15:08:14 +01:00 by admin · 0 comments
Owner

Originally created by @guilhermeblanco on GitHub (Mar 14, 2017).

The method PersistentCollection::hydrateSet (1aa02f9afc/lib/Doctrine/ORM/PersistentCollection.php (L186)) does not set the back-reference in original entity data as PersistentCollection::hydrateAdd (1aa02f9afc/lib/Doctrine/ORM/PersistentCollection.php (L159)) does.

Originally created by @guilhermeblanco on GitHub (Mar 14, 2017). The method `PersistentCollection::hydrateSet` (https://github.com/doctrine/doctrine2/blob/1aa02f9afcb374d7d3060f960fa8ce096bf71369/lib/Doctrine/ORM/PersistentCollection.php#L186) does not set the back-reference in original entity data as `PersistentCollection::hydrateAdd` (https://github.com/doctrine/doctrine2/blob/1aa02f9afcb374d7d3060f960fa8ce096bf71369/lib/Doctrine/ORM/PersistentCollection.php#L159) does.
admin added the Bug label 2026-01-22 15:08:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5458