public function actionEdit($id)
 {
     if (!($this->entity = $this->em->find($this->getEntityClassName(), $id))) {
         $this->redirect("default");
     }
     $this->template->viewTitle = $this->editViewTitle;
     $this["manageForm"]->setDefaults($this->entity->toArray());
     if ($this->isAjax()) {
         $this->payload->isModal = TRUE;
         $this->redrawControl("modal");
     }
 }
Example #2
0
 protected function initDefaults()
 {
     parent::initDefaults();
     $this->row->read = Message::UNREAD;
 }