Organisation registration process implemented with configurable approval workflow

This commit is contained in:
bwilliams committed 2022-02-10 13:00:51 +00:00
1 parent fade1f8441
commit b64b4d72f9
23 files changed
+1453 -7

No files matched your search

+3
View File
@@ -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();