protected function findEfProjHdlrModel($id) { if (($model = EfProjHdlr::find()->where(['USER_ID' => $id])->one()) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }