feat: allow cascading of collaborations
This commit is contained in:
@@ -395,6 +395,7 @@ class ProjectsPump implements PumpInterface
|
||||
$collaboration = new Collaboration();
|
||||
$collaboration->setTitle($support['support']);
|
||||
$collaboration->setDescription($support['description']);
|
||||
|
||||
$collaborations[] = $collaboration;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user