Delete orphaned Group_Members records after deleting a Member

This commit is contained in:
JorisDebonnet 2018-02-27 19:47:26 +01:00 committed by GitHub
parent 1973f87c4b
commit 3e0984db49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -948,6 +948,7 @@ class Member extends DataObject
// prevent orphaned records remaining in the DB
$this->deletePasswordLogs();
$this->Groups()->removeAll();
}
/**