1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Merge pull request #744 from jbruni/patch-1

Corrected PHP type for "decimal" mapping type
This commit is contained in:
Benjamin Eberlei 2013-08-10 07:23:50 -07:00
commit 610e18949b
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

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