Organise object groups

This commit is contained in:
James Cole
2020-06-07 16:38:15 +02:00
parent 16b0307b0a
commit 471cdefcff
8 changed files with 172 additions and 4 deletions

View File

@@ -181,6 +181,7 @@ trait ModifiesPiggyBanks
*/
public function destroy(PiggyBank $piggyBank): bool
{
$piggyBank->objectGroups()->sync([]);
$piggyBank->delete();
return true;