Allow to remove the canceled workflow to be deleted, if canceled

- OP#812
- https://champs-libres.openproject.com/work_packages/812
This commit is contained in:
2024-11-06 17:10:48 +01:00
parent 43b70fd773
commit 7aca08c89e
4 changed files with 218 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class EntityWorkflowSend implements TrackCreationInterface
/**
* @var Collection<int, EntityWorkflowSendView>
*/
#[ORM\OneToMany(targetEntity: EntityWorkflowSendView::class, mappedBy: 'send')]
#[ORM\OneToMany(mappedBy: 'send', targetEntity: EntityWorkflowSendView::class, cascade: ['remove'])]
private Collection $views;
public function __construct(