Skip to content

Commit

Permalink
Merge pull request #7021 from lcobucci/fix-phpstan-check
Browse files Browse the repository at this point in the history
Fix incorrect variable reference
  • Loading branch information
lcobucci committed Jan 30, 2018
2 parents c2f698e + 62c952d commit 3f772ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/Tools/SchemaValidator.php
Expand Up @@ -181,9 +181,9 @@ public function validateClass(ClassMetadataInfo $class)

$identifierColumns = $targetMetadata->getIdentifierColumnNames();
foreach ($assoc['joinTable']['inverseJoinColumns'] as $inverseJoinColumn) {
if (!in_array($inverseJoinColumn['referencedColumnName'], $identifierColumns)) {
$ce[] = "The referenced column name '" . $joinColumn['referencedColumnName'] . "' " .
"has to be a primary key column on the target entity class '".$targetMetadata->name."'.";
if (! in_array($inverseJoinColumn['referencedColumnName'], $identifierColumns)) {
$ce[] = "The referenced column name '" . $inverseJoinColumn['referencedColumnName'] . "' " .
"has to be a primary key column on the target entity class '" .$targetMetadata->name . "'.";
break;
}
}
Expand Down

0 comments on commit 3f772ea

Please sign in to comment.