Merge pull request #6826 from JKapitein/patch-1
Add Type::GUID to $typeAlias list in EntityGenerator
This commit is contained in:
commit
92dd27fe3f
@ -164,6 +164,7 @@ class EntityGenerator
|
|||||||
Type::TEXT => 'string',
|
Type::TEXT => 'string',
|
||||||
Type::BLOB => 'string',
|
Type::BLOB => 'string',
|
||||||
Type::DECIMAL => 'string',
|
Type::DECIMAL => 'string',
|
||||||
|
Type::GUID => 'string',
|
||||||
Type::JSON_ARRAY => 'array',
|
Type::JSON_ARRAY => 'array',
|
||||||
Type::SIMPLE_ARRAY => 'array',
|
Type::SIMPLE_ARRAY => 'array',
|
||||||
Type::BOOLEAN => 'bool',
|
Type::BOOLEAN => 'bool',
|
||||||
|
@ -1084,6 +1084,14 @@ class EntityGeneratorTest extends OrmTestCase
|
|||||||
'value' => 'blob'
|
'value' => 'blob'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'fieldName' => 'guid',
|
||||||
|
'phpType' => 'string',
|
||||||
|
'dbType' => 'guid',
|
||||||
|
'value' => '00000000-0000-0000-0000-000000000001'
|
||||||
|
]
|
||||||
|
],
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
'fieldName' => 'decimal',
|
'fieldName' => 'decimal',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user