mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Add cascade remove for accounts relationship, when deleting an application related accounts will be deleted as well
This commit is contained in:
@@ -120,7 +120,7 @@ class ApiApplication
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @OneToMany(targetEntity="ApiAccount", mappedBy="product")
|
* @OneToMany(targetEntity="ApiAccount", mappedBy="product", cascade={"remove"})
|
||||||
**/
|
**/
|
||||||
private $accounts;
|
private $accounts;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user