DDC-3033: Regression in computeChangeSets (ManyToMany relation) #3767

Open
opened 2026-01-22 14:27:42 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 17, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user raziel057:

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

53a5a48aed (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?

Originally created by @doctrinebot on GitHub (Mar 17, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user raziel057: 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?
admin added the Bug label 2026-01-22 14:27:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3767