1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Fix wrong variable reference

This commit is contained in:
Luís Cobucci 2018-01-30 01:21:34 +01:00
parent c2f698e56e
commit 62c952d258
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C

View File

@ -181,9 +181,9 @@ class SchemaValidator
$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;
}
}