Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
3839fa70
Commit
3839fa70
authored
Apr 06, 2020
by
Guillaume Perréal
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajoute 'object' aux builtin types.
parent
ec3b86ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/php/ModelGenerator.php
src/php/ModelGenerator.php
+2
-2
No files found.
src/php/ModelGenerator.php
View file @
3839fa70
...
...
@@ -23,7 +23,6 @@ namespace Irstea\NgModelGeneratorBundle;
use
ApiPlatform\Core\Documentation\Documentation
;
use
Irstea\NgModelGeneratorBundle\Exceptions\DomainException
;
use
Irstea\NgModelGeneratorBundle\Exceptions\Exception
;
use
Irstea\NgModelGeneratorBundle\Iterators\IteratorBuilder
;
use
Irstea\NgModelGeneratorBundle\Metadata\MetadataFactoryInterface
;
use
Irstea\NgModelGeneratorBundle\Metadata\ResourceMetadata
;
...
...
@@ -182,7 +181,7 @@ final class ModelGenerator
{
$factory
=
new
TypeFactory
();
foreach
([
'Array'
,
'Date'
,
'boolean'
,
'number'
,
'null'
,
'string'
,
'any'
,
'never'
,
'unknown'
]
as
$builtin
)
{
foreach
([
'Array'
,
'Date'
,
'boolean'
,
'number'
,
'null'
,
'string'
,
'object'
,
'any'
,
'never'
,
'unknown'
]
as
$builtin
)
{
$factory
->
add
(
$builtin
,
BuiltinType
::
get
(
$builtin
));
}
...
...
@@ -193,6 +192,7 @@ final class ModelGenerator
foreach
([
PHPType
::
BUILTIN_TYPE_ARRAY
=>
'Array'
,
PHPType
::
BUILTIN_TYPE_BOOL
=>
'boolean'
,
PHPType
::
BUILTIN_TYPE_OBJECT
=>
'object'
,
PHPType
::
BUILTIN_TYPE_FLOAT
=>
'number'
,
PHPType
::
BUILTIN_TYPE_INT
=>
'number'
,
PHPType
::
BUILTIN_TYPE_NULL
=>
'null'
,
...
...
Guillaume Perréal
@guillaume.perreal
mentioned in issue
#10 (closed)
·
Apr 06, 2020
mentioned in issue
#10 (closed)
mentioned in issue #10
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment