Skip to content

Commit 7fb3cd2

Browse files
committed
Add uriVariables to Company.
1 parent 6ca0aa4 commit 7fb3cd2

File tree

1 file changed

+7
-0
lines changed
  • tests/Fixtures/TestBundle/Entity/Issue5736Aerendir

1 file changed

+7
-0
lines changed

tests/Fixtures/TestBundle/Entity/Issue5736Aerendir/Company.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue5736Aerendir;
1515

1616
use ApiPlatform\Metadata as API;
17+
use Coommercio\App\Coommercio\Entity\Property\AccountAware;
1718
use Doctrine\Common\Collections\ArrayCollection;
1819
use Doctrine\Common\Collections\Collection;
1920
use Doctrine\ORM\Mapping as ORM;
@@ -35,13 +36,19 @@
3536
),
3637
new API\Get(
3738
uriTemplate: self::API_RESOURCE,
39+
uriVariables: [
40+
self::API_ID_PLACEHOLDER => new API\Link(fromClass: self::class, identifiers: ['id']),
41+
],
3842
),
3943
new API\Post(
4044
read: false,
4145
uriTemplate: self::API_ENDPOINT,
4246
),
4347
new API\Put(
4448
uriTemplate: self::API_RESOURCE,
49+
uriVariables: [
50+
self::API_ID_PLACEHOLDER => new API\Link(fromClass: self::class, identifiers: ['id']),
51+
],
4552
),
4653
],
4754
)]

0 commit comments

Comments
 (0)