示例#1
0
 /**
  * @return \Application\Model\AbstractModel
  */
 public function getModel()
 {
     if (!$this->model) {
         $this->model = \Application\Module::getEntityManager()->getRepository($this->modelClass)->findOneById($this->modelId);
     }
     return $this->model;
 }