merge conditions
This commit is contained in:
parent
16cddd4693
commit
347d1625bc
@ -1155,9 +1155,9 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
$joinColumns = reset($assoc['joinColumns']);
|
$joinColumns = reset($assoc['joinColumns']);
|
||||||
$isNullable = isset($joinColumns['nullable']) ? $joinColumns['nullable'] : false;
|
$weight = (int)empty($joinColumns['nullable']);
|
||||||
|
|
||||||
$calc->addDependency($targetClass->name, $class->name, $isNullable ? 0 : 1);
|
$calc->addDependency($targetClass->name, $class->name, $weight);
|
||||||
|
|
||||||
// If the target class has mapped subclasses, these share the same dependency.
|
// If the target class has mapped subclasses, these share the same dependency.
|
||||||
if ( ! $targetClass->subClasses) {
|
if ( ! $targetClass->subClasses) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user