1
0
mirror of synced 2025-01-24 17:21:40 +03:00

[DBAL-878] Wrong mapping type

the type should be the mapping type, and not the name of the type. This
does the difference for simple_array, as the result should be
simple_array and not simplearray
This commit is contained in:
Cédric Chandon 2014-04-25 01:59:15 +02:00
parent f7de00b401
commit 9ba31a394a

View File

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