public function delete() { if ($this->exists && $this->isMainComment()) { $this->children()->delete(); } parent::delete(); }