diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 8e353bda9..b32197895 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -513,7 +513,7 @@ public function () $methods[] = $code; } } else if ($associationMapping['type'] == ClassMetadataInfo::ONE_TO_MANY) { - if ($associationMapping->isOwningSide) { + if ($associationMapping['isOwningSide']) { if ($code = $this->_generateEntityStubMethod($metadata, 'set', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { $methods[] = $code; }