1
0
mirror of synced 2025-02-20 14:13:15 +03:00

[DDC-1649] Fix notice by last commit.

This commit is contained in:
Benjamin Eberlei 2012-02-20 15:38:25 +01:00
parent 502585bf40
commit dbd646b2de

View File

@ -106,7 +106,7 @@ class SchemaValidator
$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 " .
"the target entity '". $targetMetadata->name . "' also maps an association as identifier.";
}