From e6007575e1dd5d8ccc0d7f805ebe8c8898854569 Mon Sep 17 00:00:00 2001 From: J Bruni Date: Sat, 3 Aug 2013 05:44:15 -0300 Subject: [PATCH] Corrected PHP type for "decimal" mapping type "Basic Mapping" documentation says: "decimal: Type that maps a SQL DECIMAL to a PHP string." --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 5a55f0fc9..bab4c87f2 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -152,7 +152,7 @@ class EntityGenerator Type::SMALLINT => 'integer', Type::TEXT => 'string', Type::BLOB => 'string', - Type::DECIMAL => 'float', + Type::DECIMAL => 'string', Type::JSON_ARRAY => 'array', Type::SIMPLE_ARRAY => 'array', );