protected function findModel($id)
 {
     if (($model = PaymentMethod::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPaymentMethod()
 {
     return $this->hasOne(PaymentMethod::className(), ['id' => 'payment_method_id']);
 }
 public function actionNewOffer()
 {
     return $this->render('newOffer', ['paymentMethod' => PaymentMethod::find()->active()->all()]);
 }