Skip to content

Loading…

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

Open
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

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?

@doctrinebot

Comment created by @ocramius:

Changesets of collections are computed separately from those of entities.

@doctrinebot

Comment created by yohann.poli:

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

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

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...

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.