コード例 #1
0
ファイル: PokerDraft.php プロジェクト: aldegtyarev/fantasy
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFantasy()
 {
     return $this->hasOne(PokerFantasy::className(), ['id' => 'fantasy_id']);
 }
コード例 #2
0
ファイル: PokerEvent.php プロジェクト: aldegtyarev/fantasy
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFantasies()
 {
     return $this->hasMany(PokerFantasy::className(), ['event_id' => 'id']);
 }