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

after review

This commit is contained in:
ReenExe 2016-07-05 19:15:47 +03:00 committed by GitHub
parent c0fc4f1158
commit bcc7983934

View File

@ -1155,9 +1155,8 @@ class UnitOfWork implements PropertyChangedListener
}
$joinColumns = reset($assoc['joinColumns']);
$weight = (int)empty($joinColumns['nullable']);
$calc->addDependency($targetClass->name, $class->name, $weight);
$calc->addDependency($targetClass->name, $class->name, (int)empty($joinColumns['nullable']));
// If the target class has mapped subclasses, these share the same dependency.
if ( ! $targetClass->subClasses) {