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