Commit 9c5c5f0a484a363f9251d4e1090aa76c39a4e4a8
1 parent
562196a968
Exists in
master
corrige el error de repetir la solicitud si se refresca la página, para ello hub…
…o que transformar la fecha hora a solo fecha y colocar un constraint de persona, servicio, estatus y fecha
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/AppBundle/Entity/DocenteServicio.php
@@ -24,7 +24,7 @@ use Symfony\Component\Validator\Constraints as Assert; | @@ -24,7 +24,7 @@ use Symfony\Component\Validator\Constraints as Assert; | ||
24 | /** | 24 | /** |
25 | * DocenteServicio | 25 | * DocenteServicio |
26 | * | 26 | * |
27 | - * @ORM\Table(name="docente_servicio" ) | 27 | + * @ORM\Table(name="docente_servicio",uniqueConstraints={@ORM\UniqueConstraint(name="rol_institucion_servicio_status", columns={"id_rol_institucion", "id_servicio_ce", "id_estatus", "fecha_solicitud"})}) |
28 | * @ORM\Entity | 28 | * @ORM\Entity |
29 | * @ORM\HasLifecycleCallbacks() | 29 | * @ORM\HasLifecycleCallbacks() |
30 | */ | 30 | */ |
@@ -70,9 +70,9 @@ class DocenteServicio { | @@ -70,9 +70,9 @@ class DocenteServicio { | ||
70 | */ | 70 | */ |
71 | protected $idServicioCe; | 71 | protected $idServicioCe; |
72 | 72 | ||
73 | - /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"}) | 73 | + /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de creación de la solicitud"}) |
74 | /** | 74 | /** |
75 | - * @Assert\DateTime() | 75 | + * @Assert\Date() |
76 | */ | 76 | */ |
77 | private $fechaSolicitud; | 77 | private $fechaSolicitud; |
78 | 78 |