1
0
mirror of synced 2025-02-09 08:49:26 +03:00

-- Proposed fix due to logic error.

This commit is contained in:
Gabe van der Weijde 2017-06-28 20:55:58 +02:00 committed by Marco Pivetta
parent 16a14f2238
commit db2530d6fd
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

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