/** * @return \yii\db\ActiveQuery */ public function getFantasy() { return $this->hasOne(PokerFantasy::className(), ['id' => 'fantasy_id']); }
/** * @return \yii\db\ActiveQuery */ public function getFantasies() { return $this->hasMany(PokerFantasy::className(), ['event_id' => 'id']); }