public function newLU() { try { $lu = new LU(); $this->data->lu->idLemma = $this->data->gridSearchLemma->data->checked[0]; $this->data->lu->active = '1'; $this->data->lu->name = $this->data->lemma; $lu->save($this->data->lu); $frame = Frame::create($this->data->lu->idFrame); Base::createEntityRelation($lu->getIdEntity(), 'rel_evokes', $frame->getIdEntity()); $this->renderPrompt('information', 'OK', "!\$('#formNewLU_dialog').dialog('close'); structure.reloadFrame()"); } catch (\Exception $e) { $this->renderPrompt('error', $e->getMessage()); } }