/**
  * @return \yii\db\ActiveQuery
  */
 public function getGiftCard()
 {
     return $this->hasOne(Giftcards::className(), ['GiftCardId' => 'GiftCardID']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGiftcards()
 {
     return $this->hasMany(Giftcards::className(), ['GiftCardTypeId' => 'GiftCardTypeId']);
 }