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