Organisation registration process implemented with configurable approval workflow
This commit is contained in:
@@ -151,6 +151,9 @@ class Organisation extends Model implements OrganisationInterface
|
||||
if ($hardDelete) {
|
||||
static::$ci->get('organisation.beforeDelete')($this);
|
||||
|
||||
// Remove all organisation tokens
|
||||
$classMapper->getClassMapping('organisation_approval')::where('organisation_id', $this->id)->delete();
|
||||
|
||||
// Remove all member associations
|
||||
$this->members()->detach();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user