public function company() { $id = $this->request->get('id'); $company = $this->companyModel->getByID($id); if (!$company) { $this->server->sendNotFound(); } $data = $this->relationModel->getForCompanyID($id); $this->server->sendData($data); }