/** * @return \yii\db\ActiveQuery */ public function getEePaymentDetails() { return $this->hasMany(EePaymentDetails::className(), ['payment_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getPaymentDetails() { return $this->hasOne(EePaymentDetails::className(), ['id' => 'payment_details_id']); }