public function delete() { if ($this->getObject()->getId()) { $this->getObject()->delete(); } return parent::delete(); }
public function delete() { if (!$this->getId()) { return $this; } $this->getRootCategory()->delete(); return parent::delete(); }
public function delete() { $category_option = new Application_Model_Option_Value(); $option_values = $category_option->findAll(array('folder_category_id' => $this->getId())); if ($option_values->count()) { foreach ($option_values as $option_value) { $option_value->setFolderId(null)->setFolderCategoryId(null)->setFolderCategoryPosition(null)->save(); } } foreach ($this->getChildren() as $child) { $child->delete(); } return parent::delete(); }
public function delete() { $this->getTable()->deleteByParentId($this->getId()); parent::delete(); return $this; }
public function delete() { $message_id = $this->getId(); parent::delete(); $this->getTable()->deleteLog($message_id); }