Skip to content
Browse files

Merge pull request #683 from greg0ire/error_message_improvement

Explicitely state what the problem is
  • Loading branch information...
2 parents 4e8b787 + a986fe0 commit 3d6436c2f337d9e276c232e81a0e444edca98c8f @Ocramius Ocramius committed Jun 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ORM/Tools/SchemaValidator.php
View
2 lib/Doctrine/ORM/Tools/SchemaValidator.php
@@ -115,7 +115,7 @@ public function validateClass(ClassMetadataInfo $class)
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 ".

0 comments on commit 3d6436c

Please sign in to comment.
Something went wrong with that request. Please try again.