mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Delete orphaned Group_Members records after deleting a Member
This commit is contained in:
parent
1973f87c4b
commit
3e0984db49
@ -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