Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[DDC-1649] Fix notice by last commit.

  • Loading branch information...
commit af6de10c5b40c5d216373313bdd06604b145950e 1 parent f4a78e1
@beberlei beberlei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/ORM/Tools/SchemaValidator.php
View
2  lib/Doctrine/ORM/Tools/SchemaValidator.php
@@ -106,7 +106,7 @@ public function validateClass(ClassMetadataInfo $class)
$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.";
}
Please sign in to comment.
Something went wrong with that request. Please try again.