1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Merge pull request #683 from greg0ire/error_message_improvement

Explicitely state what the problem is
This commit is contained in:
Marco Pivetta 2013-06-03 03:37:38 -07:00
commit 3d6436c2f3

View File

@ -115,7 +115,7 @@ class SchemaValidator
if ($assoc['mappedBy']) {
if ($targetMetadata->hasField($assoc['mappedBy'])) {
$ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the owning side ".
"field " . $assoc['targetEntity'] . "#" . $assoc['mappedBy'] . " which is not defined as association.";
"field " . $assoc['targetEntity'] . "#" . $assoc['mappedBy'] . " which is not defined as association, but as field.";
}
if (!$targetMetadata->hasAssociation($assoc['mappedBy'])) {
$ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the owning side ".