protected function unrestrictedDelete() { // Does a subset of what RedBeanModel::unrestrictedDelete // does to the classes in the class hierarchy but to Person // which is mixed in. $modelClassName = 'Person'; $this->deleteOwnedRelatedModels($modelClassName); $this->deleteForeignRelatedModels($modelClassName); return parent::unrestrictedDelete(); }