diff --git a/features/api/general_conventions.feature b/features/api/general_conventions.feature index 12c62776b2..e5949f4a8a 100644 --- a/features/api/general_conventions.feature +++ b/features/api/general_conventions.feature @@ -80,7 +80,7 @@ Feature: ] } """ - + @debug Scenario: As an anonymous user, I can get informations of a general convention And I send a "GET" request to "/api/general_conventions/c5317499-7130-4255-a7f8-418e72f5dfa5" Then the response status code should be 200 diff --git a/migrations/2025/Version20250203124914.php b/migrations/2025/Version20250203133524.php similarity index 95% rename from migrations/2025/Version20250203124914.php rename to migrations/2025/Version20250203133524.php index 770419099b..a14cd391e4 100644 --- a/migrations/2025/Version20250203124914.php +++ b/migrations/2025/Version20250203133524.php @@ -5,7 +5,7 @@ use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; -final class Version20250203124914 extends AbstractMigration +final class Version20250203133524 extends AbstractMigration { public function up(Schema $schema): void { diff --git a/src/Entity/EntityNameSlugTrait.php b/src/Entity/EntityNameSlugTrait.php index f893db11bb..fee099b0ec 100644 --- a/src/Entity/EntityNameSlugTrait.php +++ b/src/Entity/EntityNameSlugTrait.php @@ -13,7 +13,6 @@ trait EntityNameSlugTrait * @var string */ #[Assert\NotBlank(groups: ['api_committee_edition'])] - #[Groups(['adherent_committees_modal', 'jecoute_region_read', 'cause_read', 'cause_write', 'event_read', 'committee:list', 'committee:write', 'committee:write_limited', 'national_event_inscription:webhook', 'profile_read', 'general_convention_list', 'general_convention_read'])] #[ORM\Column] protected $name; diff --git a/src/Entity/GeneralConvention/GeneralConvention.php b/src/Entity/GeneralConvention/GeneralConvention.php index 14a5c5072c..9eec69d1e9 100644 --- a/src/Entity/GeneralConvention/GeneralConvention.php +++ b/src/Entity/GeneralConvention/GeneralConvention.php @@ -47,6 +47,7 @@ class GeneralConvention #[Groups(['general_convention_list', 'general_convention_read'])] #[ORM\ManyToOne(targetEntity: Committee::class)] + #[ORM\ORM\JoinColumn(onDelete: 'SET NULL')] public ?Committee $committee = null; #[Groups(['general_convention_list', 'general_convention_read'])]