Skip to content

Commit

Permalink
-- Proposed fix due to logic error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frikkle authored and Ocramius committed Aug 11, 2017
1 parent 16a14f2 commit db2530d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ private function getCommitOrder(array $entityChangeSet = null)

$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) {
Expand Down

0 comments on commit db2530d

Please # to comment.