Fix the possibility to delete a workflow when it is on hold

This commit is contained in:
2025-11-04 13:52:54 +01:00
parent 722b37fbcc
commit 769d76a0cc
3 changed files with 53 additions and 1 deletions

View File

@@ -123,7 +123,7 @@ class EntityWorkflowStep
/**
* @var Collection<int, EntityWorkflowStepHold>
*/
#[ORM\OneToMany(mappedBy: 'step', targetEntity: EntityWorkflowStepHold::class)]
#[ORM\OneToMany(mappedBy: 'step', targetEntity: EntityWorkflowStepHold::class, cascade: ['remove'])]
private Collection $holdsOnStep;
/**