예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlayer()
 {
     return $this->hasMany(Players::className(), ['country_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlayerTwo()
 {
     return $this->hasOne(Players::className(), ['id' => 'player_two_id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlayers()
 {
     return $this->hasMany(Players::className(), ['teams_id' => 'id']);
 }