Skip to content

Commit

Permalink
Fixing DatabaseDriver to specify nullable => true instead of notnull …
Browse files Browse the repository at this point in the history
…=> false
  • Loading branch information
jwage committed May 14, 2010
1 parent 5dbd405 commit 7ac0893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function loadMetadataForClass($className, ClassMetadataInfo $metadata)
} else if ($column->getType() instanceof \Doctrine\DBAL\Types\IntegerType) {
$fieldMapping['unsigned'] = $column->getUnsigned();
}
$fieldMapping['notnull'] = $column->getNotNull();
$fieldMapping['nullable'] = $column->getNotNull() ? false : true;

if (isset($fieldMapping['id'])) {
$ids[] = $fieldMapping;
Expand Down

0 comments on commit 7ac0893

Please sign in to comment.