2 Commits

Author SHA1 Message Date
c7e32c74b6 Merge remote-tracking branch 'origin/develop' into develop
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
2026-04-06 16:43:58 +02:00
e9850fdb2e fix : correct Link uriVariables for environment POST endpoint
Use toProperty + identifiers instead of fromProperty to resolve
application slug correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 16:43:26 +02:00

View File

@@ -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')",
),