function insert() { //Set the dateAdded and who added the record global $user; $this->dateAdded = time(); $this->addedBy = $user->id; $this->modifiedBy = $user->id; $this->lastModified = time(); $ret = parent::insert(); if ($ret) { $this->saveMarriages(); $this->saveObituaries(); } return $ret; }