1
0
mirror of synced 2025-02-02 21:41:45 +03:00

merge conditions

This commit is contained in:
ReenExe 2016-07-02 22:33:23 +03:00
parent 16cddd4693
commit 347d1625bc

View File

@ -1155,9 +1155,9 @@ class UnitOfWork implements PropertyChangedListener
}
$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 ( ! $targetClass->subClasses) {