/** * @return \yii\db\ActiveQuery */ public function getGrupoTimes() { return $this->hasMany(GrupoTime::className(), ['id_time' => 'id']); }