1
0
mirror of synced 2025-01-08 10:07:10 +03:00

Fixed validation message

This commit is contained in:
Benjamin Morel 2014-04-11 22:26:24 +00:00
parent ac956f2b8c
commit 1b4eafc873
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ class SchemaValidator
}
$ce[] = "The join columns of the association '" . $assoc['fieldName'] . "' " .
"have to match to ALL identifier columns of the target entity '". $class->name . "', " .
"have to match to ALL identifier columns of the target entity '". $targetMetadata->name . "', " .
"however '" . implode(", ", array_diff($targetMetadata->getIdentifierColumnNames(), $ids)) .
"' are missing.";
}

View File

@ -102,7 +102,7 @@ class SchemaValidatorTest extends \Doctrine\Tests\OrmTestCase
$this->assertEquals(
array(
"The referenced column name 'id' has to be a primary key column on the target entity class 'Doctrine\Tests\ORM\Tools\InvalidEntity1'.",
"The join columns of the association 'assoc' have to match to ALL identifier columns of the target entity 'Doctrine\Tests\ORM\Tools\InvalidEntity2', however 'key1, key2' are missing."
"The join columns of the association 'assoc' have to match to ALL identifier columns of the target entity 'Doctrine\Tests\ORM\Tools\InvalidEntity1', however 'key1, key2' are missing."
),
$ce
);