Add cascade remove for accounts relationship, when deleting an application related accounts will be deleted as well

This commit is contained in:
Nicolas Le Goff
2014-03-05 13:30:42 +01:00
parent d3205e6f6a
commit 60474d618c

View File

@@ -120,7 +120,7 @@ class ApiApplication
/** /**
* @OneToMany(targetEntity="ApiAccount", mappedBy="product") * @OneToMany(targetEntity="ApiAccount", mappedBy="product", cascade={"remove"})
**/ **/
private $accounts; private $accounts;