Commit 6873ed0f authored by Guillaume Perréal's avatar Guillaume Perréal

Revert "N'utilise pas le cache pour les non-ressources."

This reverts commit ee5cada3.
parent 2e1f477d
......@@ -39,7 +39,6 @@ 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,10 +183,6 @@ final class OperationMapper
implode(', ', $callParameters)
);
if (!$returnType->findType(Representation::class)) {
return $clientCall;
}
$opDef = $this->operation->getOpDef();
if ($opDef->isGetCollection()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment