Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCreditCard()
 {
     return $this->hasOne(Creditcards::className(), ['CreditCardId' => 'CreditCardId']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCreditcards()
 {
     return $this->hasMany(Creditcards::className(), ['BankId' => 'BankId']);
 }