1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Merge branch 'DDC-2587' into 2.4

This commit is contained in:
Benjamin Eberlei 2013-08-10 16:25:04 +02:00
commit b324a21abf
2 changed files with 3 additions and 3 deletions

View File

@ -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',
);

View File

@ -516,9 +516,9 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
)),
array(array(
'fieldName' => 'decimal',
'phpType' => 'float',
'phpType' => 'string',
'dbType' => 'decimal',
'value' => 33.33
'value' => '12.34'
),
));
}