Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3033

Regression in computeChangeSets (ManyToMany relation)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.5, 2.4.3
    • Component/s: ORM
    • Labels:
    • Environment:
      Ubuntu

      Description

      I discover that computeChangeSet doesn't compute as before from this commit:

      https://github.com/doctrine/doctrine2/commit/53a5a48aed7d87aa1533c0bcbd72e41b686527d8#commitcomment-5696972

      From this commit, I have a bug when using KNP doctrine behaviors (with a custom code to log the changes on Entities in Database) because when I call the following code, it doesn't return the same changeSet as before:

      $uow->computeChangeSet($classMetadata, $entity);
      $changeSet = $uow->getEntityChangeSet($entity);
      

      Before the "ManyToMany" properties were not in the $changeSet. Now there are with original value NULL -> new value Doctrine\ORM\PersistentCollection. Is it normal?

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Thomas Lallement
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: