Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2219

computeChangeSets array_merging for associationMappings problem ?

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:

      Description

      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?

        Activity

        Hide
        yohann.poli added a comment -

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

        Show
        yohann.poli added a comment - 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...
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Yes you have to, but this kind of operation seems weird. What are you trying to achieve.
        Hide
        yohann.poli added a comment -

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

        Show
        yohann.poli added a comment - Have to call the compute method for each collection of the entity ?
        Hide
        Marco Pivetta added a comment -

        Changesets of collections are computed separately from those of entities.

        Show
        Marco Pivetta added a comment - Changesets of collections are computed separately from those of entities.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            yohann.poli
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: