コード例 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMatch()
 {
     return $this->hasOne(Match::className(), ['id' => 'parent_id']);
 }
コード例 #2
0
ファイル: Team.php プロジェクト: alexsynytskiy/Dynamomania
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getHomeMatches()
 {
     return $this->hasMany(Match::className(), ['command_home_id' => 'id']);
 }
コード例 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMatches()
 {
     return $this->hasMany(Match::className(), ['championship_part_id' => 'id']);
 }
コード例 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMatches()
 {
     return $this->hasMany(Match::className(), ['team_id' => 'id']);
 }
コード例 #5
0
ファイル: Stadium.php プロジェクト: alexsynytskiy/Dynamomania
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMatch()
 {
     return $this->hasMany(Match::className(), ['stadium_id' => 'id']);
 }