Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventHeroesList()
 {
     return $this->hasMany(DotaEventHero::className(), ['event_id' => 'id'])->with('hero');
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventHero()
 {
     return $this->hasOne(DotaEventHero::className(), ['hero_id' => 'hero_id']);
 }