/** * Deletes existing rows. * * @return int The number of rows deleted. */ public function delete() { $this->_getTable()->getAdapter()->beginTransaction(); try { $result = parent::delete(); $this->_getTable()->getAdapter()->commit(); return $result; } catch (Exception $e) { $this->_getTable()->getAdapter()->rollBack(); throw $e; } }
'campo = ?' => $fieldLang, 'lang_id = ?' => $lang->id )); if(!$row) $row = $languages_values->fetchNew (); $row ->setFromArray(array(
public function delete() { $this->getDependentRow()->delete(); $this->removeFiles(); return parent::delete(); }