1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Merge pull request #1018 from chandon/master

DBAL-878 Wrong mapping type
This commit is contained in:
Guilherme Blanco 2014-04-24 20:52:27 -04:00
commit e8e86205f5

View File

@ -392,7 +392,7 @@ class DatabaseDriver implements MappingDriver
$fieldMapping = array(
'fieldName' => $this->getFieldNameForColumn($tableName, $column->getName(), false),
'columnName' => $column->getName(),
'type' => strtolower((string) $column->getType()),
'type' => $column->getType()->getName(),
'nullable' => ( ! $column->getNotNull()),
);