Permalink
Browse files

nullable assoc

  • Loading branch information...
1 parent e6b99c2 commit d1b2dabc0fe14de925f558ef10646d5a9e4ddca5 @goetas goetas committed Feb 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Doctrine/ORM/Tools/EntityGenerator.php
@@ -707,6 +707,9 @@ private function _generateEntityStubMethods(ClassMetadataInfo $metadata)
private function _isAssociationIsNullable($associationMapping)
{
+ if (isset($associationMapping['id']) && $associationMapping['id']) {
+ return false;
+ }
if (isset($associationMapping['joinColumns'])) {
$joinColumns = $associationMapping['joinColumns'];
} else {

0 comments on commit d1b2dab

Please sign in to comment.