[DDC-1649] Fix notice by last commit.
This commit is contained in:
parent
502585bf40
commit
dbd646b2de
@ -106,7 +106,7 @@ class SchemaValidator
|
|||||||
|
|
||||||
$targetMetadata = $cmf->getMetadataFor($assoc['targetEntity']);
|
$targetMetadata = $cmf->getMetadataFor($assoc['targetEntity']);
|
||||||
|
|
||||||
if ($assoc['id'] && $targetMetadata->containsForeignIdentifier) {
|
if (isset($assoc['id']) && $targetMetadata->containsForeignIdentifier) {
|
||||||
$ce[] = "Cannot map association '" . $class->name. "#". $fieldName ." as identifier, because " .
|
$ce[] = "Cannot map association '" . $class->name. "#". $fieldName ." as identifier, because " .
|
||||||
"the target entity '". $targetMetadata->name . "' also maps an association as identifier.";
|
"the target entity '". $targetMetadata->name . "' also maps an association as identifier.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user