Update project owner cascade persitance

This commit is contained in:
2024-12-10 15:27:57 +01:00
parent b41830acb0
commit 2a39cd7a2f
+1 -1
View File
@@ -39,7 +39,7 @@ class Project implements AccountingOwnerInterface
/**
* The User who created this Project.
*/
#[ORM\ManyToOne(inversedBy: 'projects')]
#[ORM\ManyToOne(inversedBy: 'projects', cascade: ['persist'])]
#[ORM\JoinColumn(nullable: false)]
private ?User $owner = null;