public function delete($connection = null) { parent::delete($connection); if (isset($this->informationObject)) { QubitSearch::updateInformationObject($this->getInformationObject()); } }
public function delete(Doctrine_Connection $conn = null) { $parent = $this->getParent(); if ($this->getChildClass()) { foreach ($this->getChildren() as $child) { $child->delete($conn); } } $result = parent::delete($conn); if ($parent) { $parent->calc(); } return $result; }