From 9ba31a394a112aae516ce9c8a5f8e791aeb1b332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Chandon?= Date: Fri, 25 Apr 2014 01:59:15 +0200 Subject: [PATCH] [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 --- lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()), );