diff --git a/src/Entity/Environment.php b/src/Entity/Environment.php index faaeeb4..1fc8e55 100644 --- a/src/Entity/Environment.php +++ b/src/Entity/Environment.php @@ -21,7 +21,7 @@ use Symfony\Component\Serializer\Attribute\Groups; new Post( uriTemplate: '/applications/{slug}/environments', uriVariables: [ - 'slug' => new Link(fromClass: Application::class, fromProperty: 'environments'), + 'slug' => new Link(toProperty: 'application', fromClass: Application::class, identifiers: ['slug']), ], security: "is_granted('ROLE_ADMIN')", ),