public function actionDelete($id) { $this->exist($id); $this->row->delete(); $this->flashMessage($this->translator->translate('admin.text.itemDeleted')); $this->redirect('default'); }
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(); } }
/** * Deletes row. * * @return int number of affected rows */ public function delete() { return $this->activeRow->delete(); }