Exemplo n.º 1
0
 public function actionView($paymentId)
 {
     $payment = Payment::findOne($paymentId);
     return $this->render('view', ['payment' => $payment]);
 }
Exemplo n.º 2
0
 /**
  * #return \yii\db\ActiveRelation
  */
 public function getPayments()
 {
     return $this->hasMany(\app\models\ar\Payment::className(), ['order_id' => 'id']);
 }