1
0
mirror of synced 2025-01-18 06:21:40 +03:00

fix delete join table

This commit is contained in:
Fabio B. Silva 2012-06-11 15:58:47 -03:00
parent 7807d6806c
commit 51f29cddb9

View File

@ -432,13 +432,20 @@ class BasicEntityPersister
} }
if ($selfReferential) { if ($selfReferential) {
$otherKeys = array_keys($mapping['relationToSourceKeyColumns']); foreach ($mapping['joinTable']['joinColumns'] as $joinColumn) {
$otherKeys[] = $this->quoteStrategy->getJoinColumnName($joinColumn, $relatedClass);
}
} }
} else { } else {
$keys = array_keys($mapping['relationToSourceKeyColumns']);
foreach ($mapping['joinTable']['joinColumns'] as $joinColumn) {
$keys[] = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->_class);
}
if ($selfReferential) { if ($selfReferential) {
$otherKeys = array_keys($mapping['relationToTargetKeyColumns']); foreach ($mapping['joinTable']['inverseJoinColumns'] as $joinColumn) {
$otherKeys[] = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->_class);
}
} }
} }