Skip to content

Commit

Permalink
Merge pull request #1018 from chandon/master
Browse files Browse the repository at this point in the history
DBAL-878 Wrong mapping type
  • Loading branch information
guilhermeblanco committed Apr 25, 2014
2 parents f7de00b + 9ba31a3 commit e8e8620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
Expand Up @@ -392,7 +392,7 @@ private function buildFieldMapping($tableName, Column $column)
$fieldMapping = array(
'fieldName' => $this->getFieldNameForColumn($tableName, $column->getName(), false),
'columnName' => $column->getName(),
'type' => strtolower((string) $column->getType()),
'type' => $column->getType()->getName(),
'nullable' => ( ! $column->getNotNull()),
);

Expand Down

0 comments on commit e8e8620

Please sign in to comment.