feat: allow cascading of collaborations

This commit is contained in:
2026-09-30 14:55:13 +02:00
parent 10c7806ef6
commit 574b6d3ccf
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -395,6 +395,7 @@ class ProjectsPump implements PumpInterface
$collaboration = new Collaboration();
$collaboration->setTitle($support['support']);
$collaboration->setDescription($support['description']);
$collaborations[] = $collaboration;
}
+1 -1
View File
@@ -157,7 +157,7 @@ class Project implements UserOwnedInterface, AccountingOwnerInterface, Localized
/**
* @var Collection<int, Collaboration>
*/
#[ORM\OneToMany(targetEntity: Collaboration::class, mappedBy: 'project')]
#[ORM\OneToMany(targetEntity: Collaboration::class, mappedBy: 'project', cascade: ['persist'])]
private Collection $collaborations;
/**