fix delete join table
This commit is contained in:
parent
7807d6806c
commit
51f29cddb9
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user