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

        yohann.poli created issue -
        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.
        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
        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.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Documentation [ 6 ]
        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...

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2219, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: