public function delete() { $this->where('parent_id', $this->id)->delete(); return parent::delete(); }