/** * @return \yii\db\ActiveQuery */ public function getAlumnos() { return $this->hasOne(Alumnos::className(), ['id_horario' => 'horario']); }