예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGames()
 {
     return $this->hasMany(Games::className(), ['group_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGame()
 {
     return $this->hasOne(Games::className(), ['id' => 'game_id']);
 }