Skip to content


DDC-2311: ManyToManyPersister fails to delete when entity uses FK ID #3015

doctrinebot opened this Issue · 3 comments

1 participant


Jira issue originally created by user chrisrichard:

ManyToManyPersister::getDeleteSQLParameters assumes $srcColumn contains a field name; doesn't handle association case.

ManyToManyPerister.php, lines 204-209:

// Composite identifier
$sourceClass = $this->_em->getClassMetadata($mapping['sourceEntity']);
foreach ($mapping['relationToSourceKeyColumns'] as $relColumn => $srcColumn) {
   $params[] = $identifier[$sourceClass->fieldNames[$srcColumn]];

Comment created by @FabioBatSilva:

Hi Chris,

Could you try to add a failing test case please ?



Comment created by @FabioBatSilva:

Fixed by : cef2089


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.4 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.