|
@@ -30,9 +30,9 @@ class Incidente extends ModeloIncidente {
|
|
return $this->hasOne(Obra::class, ['id' => 'idObra']);
|
|
return $this->hasOne(Obra::class, ['id' => 'idObra']);
|
|
}
|
|
}
|
|
|
|
|
|
- public function getEmpleado()
|
|
|
|
|
|
+ public function getEmpleados()
|
|
{
|
|
{
|
|
- return $this->hasMany(Empleado::class, ['id' => 'idEmpleado'])->viaTable("incidenteEmpleado",['idIncidente'=>'id']) ;
|
|
|
|
|
|
+ return $this->hasMany(Empleado::class, ['id' => 'idEmpleado'])->viaTable("IncidenteEmpleado",['idIncidente'=>'id']) ;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|