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

Closed
doctrinebot opened this Issue Feb 21, 2013 · 3 comments

1 participant

@doctrinebot

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]];
}
@doctrinebot

Comment created by @FabioBatSilva:

Hi Chris,

Could you try to add a failing test case please ?

Cheers.

@doctrinebot

Comment created by @FabioBatSilva:

Fixed by : cef2089

@doctrinebot

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