1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Fixing DatabaseDriver to specify nullable => true instead of notnull => false

This commit is contained in:
Jonathan H. Wage 2010-05-14 12:31:25 -04:00
parent 5dbd40563c
commit 7ac08931bc

View File

@ -100,7 +100,7 @@ class DatabaseDriver implements Driver
} 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;