DDC-2219: computeChangeSets array_merging for associationMappings problem ? #2790

Closed
opened 2026-01-22 14:03:48 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 2, 2013).

Originally assigned to: @ostrolucky on GitHub.

Jira issue originally created by user yohann.poli:

Is this normal that when i call "$changeset = $unitOfWork->getEntityChangeSet($myObject);", it only return changes of root Object, all changes in sub collection (OneToMany) are less (not merging in the changeset) ?

Is there an issue for that?

Originally created by @doctrinebot on GitHub (Jan 2, 2013). Originally assigned to: @ostrolucky on GitHub. Jira issue originally created by user yohann.poli: Is this normal that when i call "$changeset = $unitOfWork->getEntityChangeSet($myObject);", it only return changes of root Object, all changes in sub collection (OneToMany) are less (not merging in the changeset) ? Is there an issue for that?
admin added the Invalid label 2026-01-22 14:03:48 +01:00
admin closed this issue 2026-01-22 14:03:48 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 2, 2013):

Comment created by @ocramius:

Changesets of collections are computed separately from those of entities.

@doctrinebot commented on GitHub (Jan 2, 2013): Comment created by @ocramius: Changesets of collections are computed separately from those of entities.
Author
Owner

@doctrinebot commented on GitHub (Jan 2, 2013):

Comment created by yohann.poli:

Have to call the compute method for each collection of the entity ?

@doctrinebot commented on GitHub (Jan 2, 2013): Comment created by yohann.poli: Have to call the compute method for each collection of the entity ?
Author
Owner

@doctrinebot commented on GitHub (Jan 6, 2013):

Comment created by @beberlei:

Yes you have to, but this kind of operation seems weird. What are you trying to achieve.

@doctrinebot commented on GitHub (Jan 6, 2013): Comment created by @beberlei: Yes you have to, but this kind of operation seems weird. What are you trying to achieve.
Author
Owner

@doctrinebot commented on GitHub (Jan 7, 2013):

Comment created by yohann.poli:

I manage a complex entity who have a collection entity (each entity in this collection have another collection entity) attributes and i need to now if the flush method has "really" execute an update.

For example if the level 3 entity is update, i have to know in the root entity all changes apply in child...

@doctrinebot commented on GitHub (Jan 7, 2013): Comment created by yohann.poli: I manage a complex entity who have a collection entity (each entity in this collection have another collection entity) attributes and i need to now if the flush method has "really" execute an update. For example if the level 3 entity is update, i have to know in the root entity all changes apply in child...
Author
Owner

@ostrolucky commented on GitHub (Aug 3, 2018):

Not an issue, as explained.

@ostrolucky commented on GitHub (Aug 3, 2018): Not an issue, as explained.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2790