function AddEducation() { $this->row_no = manage_person_education::LastID($this->PersonID) + 1; if (parent::insert("HRM_person_educations", $this) === false) { print_r(ExceptionHandler::PopAllExceptions()); die; return false; } $daObj = new DataAudit(); $daObj->ActionType = DataAudit::Action_add; $daObj->RelatedPersonType = 3; $daObj->RelatedPersonID = $this->PersonID; $daObj->MainObjectID = $this->row_no; $daObj->TableName = "HRM_person_educations"; $daObj->execute(); return true; }