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
fc4b3bf5
Commit
fc4b3bf5
authored
Feb 17, 2021
by
Guillaume Perréal
Browse files
N'utilise pas le cache pour les objets sans @id.
parent
365d7fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/php/OperationMapper.php
View file @
fc4b3bf5
...
...
@@ -40,6 +40,7 @@ use Irstea\NgModelGeneratorBundle\Models\Types\Operations\Path;
use
Irstea\NgModelGeneratorBundle\Models\Types\Placeholder
;
use
Irstea\NgModelGeneratorBundle\Models\Types\Reference
;
use
Irstea\NgModelGeneratorBundle\Models\Types\Resources\Collection
;
use
Irstea\NgModelGeneratorBundle\Models\Types\Resources\Representation
;
use
Irstea\NgModelGeneratorBundle\Models\Types\Type
;
use
Irstea\NgModelGeneratorBundle\Models\Types\Union
;
...
...
@@ -184,6 +185,12 @@ final class OperationMapper
implode
(
', '
,
$callParameters
)
);
/** @var Representation|null $repr */
$repr
=
$returnType
->
findType
(
Representation
::
class
);
if
(
$repr
===
null
||
!
$repr
->
hasProperty
(
'@id'
))
{
return
$clientCall
;
}
$opDef
=
$this
->
operation
->
getOpDef
();
if
(
$opDef
->
isGetCollection
())
{
...
...
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