/** * @return \yii\db\ActiveQuery */ public function getDeck() { return $this->hasOne(Deck::className(), ['id' => 'deck_id']); }