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