示例#1
0
文件: Orm.php 项目: hoaitn/base-zend
 /**
  * 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;
     }
 }
示例#2
0
文件: Row.php 项目: agenciaaeh/kahina
                       'campo = ?' => $fieldLang,

                       'lang_id = ?' => $lang->id

                   ));

                   if(!$row)

                       $row = $languages_values->fetchNew ();

                   $row

                       ->setFromArray(array(
示例#3
0
文件: GalleryRow.php 项目: html/PI
 public function delete()
 {
     $this->getDependentRow()->delete();
     $this->removeFiles();
     return parent::delete();
 }