Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
0fa46b48
Commit
0fa46b48
authored
Apr 19, 2020
by
Guillaume Perréal
Browse files
S'il n'y a pas d'opération get, teste les autres opérations pour trouver un modèle IRI.
parent
5eb35958
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/php/ModelGenerator.php
View file @
0fa46b48
...
...
@@ -320,11 +320,17 @@ final class ModelGenerator
return
null
;
}
$iri
=
null
;
if
(
isset
(
$opsMeta
[
'getitem'
]))
{
$get
=
$opsMeta
[
'getitem'
];
$iri
=
$pathParser
->
parse
(
$get
->
getPath
(),
$get
->
getRequirements
());
}
else
{
$iri
=
null
;
foreach
(
$opsMeta
as
$operation
)
{
if
(
$operation
->
isItemOperation
())
{
$iri
=
$pathParser
->
parse
(
$operation
->
getPath
(),
$operation
->
getRequirements
());
break
;
}
}
}
foreach
(
$opsMeta
as
$operation
)
{
...
...
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