Commit 57cd2e01 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DDC-515 - Fixed a notice occuring in certain scenarios of the new Validate Schema Tool

parent d00f674a
......@@ -117,7 +117,8 @@ class SchemaValidator
"field " . $assoc->targetEntityName . "#" . $assoc->inversedBy . " which does not exist.";
}
if ($targetMetadata->associationMappings[$assoc->mappedBy]->mappedBy == null) {
if (isset($targetMetadata->associationMappings[$assoc->mappedBy]) &&
$targetMetadata->associationMappings[$assoc->mappedBy]->mappedBy == null) {
$ce[] = "The field " . $class->name . "#" . $fieldName . " is on the inverse side of a ".
"bi-directional relationship, but the specified mappedBy association on the target-entity ".
$assoc->targetEntityName . "#" . $assoc->mappedBy . " does not contain the required ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment