public function delete($connection = null) { if ($this->deleted) { throw new PropelException('This object has already been deleted.'); } $this->clear(); $this->deleteFromNestedSet($connection); parent::delete($connection); return $this; }