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

Merge pull request #6826 from JKapitein/patch-1

Add Type::GUID to $typeAlias list in EntityGenerator
This commit is contained in:
Luís Cobucci 2017-11-28 00:38:11 +01:00 committed by GitHub
commit 92dd27fe3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -164,6 +164,7 @@ class EntityGenerator
Type::TEXT => 'string',
Type::BLOB => 'string',
Type::DECIMAL => 'string',
Type::GUID => 'string',
Type::JSON_ARRAY => 'array',
Type::SIMPLE_ARRAY => 'array',
Type::BOOLEAN => 'bool',

View File

@ -1084,6 +1084,14 @@ class EntityGeneratorTest extends OrmTestCase
'value' => 'blob'
]
],
[
[
'fieldName' => 'guid',
'phpType' => 'string',
'dbType' => 'guid',
'value' => '00000000-0000-0000-0000-000000000001'
]
],
[
[
'fieldName' => 'decimal',