/**
  * @param integer $id
  * @return Financy
  * @throws \yii\web\BadRequestHttpException
  */
 protected function loadModel($id)
 {
     $model = Financy::findOne($id);
     if ($model === null) {
         throw new BadRequestHttpException();
     }
     return $model;
 }