diff --git a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php index 9a12bbc72..ce35e7e9f 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php @@ -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()), );