Skip to content

Commit

Permalink
Fix cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
Remg committed Feb 3, 2025
1 parent cc60d7e commit df25867
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/api/general_conventions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion src/Entity/EntityNameSlugTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/Entity/GeneralConvention/GeneralConvention.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])]
Expand Down

0 comments on commit df25867

Please sign in to comment.