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

doctrinebot opened this Issue Feb 21, 2013 · 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 Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment