delete() public méthode

Deletes row.
public delete ( ) : integer
Résultat integer number of affected rows
Exemple #1
0
 public function actionDelete($id)
 {
     $this->exist($id);
     $this->row->delete();
     $this->flashMessage($this->translator->translate('admin.text.itemDeleted'));
     $this->redirect('default');
 }
Exemple #2
0
 public function actionDelete($id)
 {
     $this->exist($id);
     $this->privilege->delete();
     $this->flashMessage($this->translator->translate('admin.privilege.privilegeDelete'));
     $this->redirect('default');
 }
 /**
  * Deletes current record if saved.
  * @return void
  */
 public function delete()
 {
     if ($this->isNewEntity()) {
         return;
     } else {
         $this->row->delete();
     }
 }
Exemple #4
0
 /**
  * Deletes row.
  *
  * @return int number of affected rows
  */
 public function delete()
 {
     return $this->activeRow->delete();
 }