Skip to content

Commit

Permalink
after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenExe authored Jul 5, 2016
1 parent c0fc4f1 commit bcc7983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,8 @@ private function getCommitOrder(array $entityChangeSet = null)
}

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

0 comments on commit bcc7983

Please sign in to comment.