/** * @return \yii\db\ActiveQuery */ public function getCard() { return $this->hasOne(Card::className(), ['card_id' => 'card_id']); }