Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have a listener who listens on onFlush event,
      i have a document and change a property (integer) in it and call $uow->recomputeSingleDocumentChangeSet().
      The result is that all references are added twice.

      If i remove the call to $uow->recomputeSingleDocumentChangeSet() all is fine.

      Here's my document (notice references added twice on children property):

      array (
      'children' =>
      array (
      0 =>
      array (
      '$ref' => 'block',
      '$id' => new MongoId("4d8b663638b6180803000005"),
      '$db' => 'app_jules',
      '_doctrine_class_name' => 'Design\\PageBundle\\Document
      StrategyBlock',
      ),
      1 =>
      array (
      '$ref' => 'block',
      '$id' => new MongoId("4d8b663638b6180803000005"),
      '$db' => 'app_jules',
      '_doctrine_class_name' => 'Design\\PageBundle\\Document
      StrategyBlock',
      )
      ),
      'order' => 0,
      'parent' =>
      array (
      '$ref' => 'block',
      '$id' => new MongoId("4d8b663638b6180803000003"),
      '$db' => 'app_jules',
      '_doctrine_class_name' => 'Design\\PageBundle\\Document
      ContainerBlock',
      ),
      'type' => 'container',
      )

      EDIT: if i clear() the $children ArrayCollection before calling $uow->recomputeSingleDocumentChangeSet() all is fine

      I tried to reproduce it in a test-case but the result wasn't successful

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            jules b
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: