From 60474d618c24706f1c6822c154ed1c90b718e7f5 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Wed, 5 Mar 2014 13:30:42 +0100 Subject: [PATCH] Add cascade remove for accounts relationship, when deleting an application related accounts will be deleted as well --- lib/Alchemy/Phrasea/Model/Entities/ApiApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Model/Entities/ApiApplication.php b/lib/Alchemy/Phrasea/Model/Entities/ApiApplication.php index cdeeed2866..3460ea3325 100644 --- a/lib/Alchemy/Phrasea/Model/Entities/ApiApplication.php +++ b/lib/Alchemy/Phrasea/Model/Entities/ApiApplication.php @@ -120,7 +120,7 @@ class ApiApplication /** - * @OneToMany(targetEntity="ApiAccount", mappedBy="product") + * @OneToMany(targetEntity="ApiAccount", mappedBy="product", cascade={"remove"}) **/ private $accounts;