mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7896 from JorisDebonnet/patch-1
Delete orphaned Group_Members records after deleting a Member
This commit is contained in:
commit
68f5d8b37e
@ -946,8 +946,9 @@ class Member extends DataObject
|
||||
{
|
||||
parent::onAfterDelete();
|
||||
|
||||
//prevent orphaned records remaining in the DB
|
||||
// prevent orphaned records remaining in the DB
|
||||
$this->deletePasswordLogs();
|
||||
$this->Groups()->removeAll();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user