1
0
mirror of synced 2025-01-10 02:57:10 +03:00

Merge pull request #1010 from BenMorel/validation-message

Fixed validation message
This commit is contained in:
Marco Pivetta 2014-04-12 01:49:16 +02:00
commit 8b6b1c68a0
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
);