public function getCategory() { if ($this->category == null) { $this->load->model('entities/easol/Easol_ReportCategory'); $category = new Easol_ReportCategory(); $this->category = $category->findOne(['ReportCategoryId' => $this->ReportCategoryId]); } return $this->category; }