mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +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;
|
||||
|
||||
|
Reference in New Issue
Block a user