Commit 1a91d42c7b88729bd19347a3eb68a1cc48d83fcd
1 parent
847fafb037
Exists in
master
colocado los escalafones en orden de escala en la adscripción
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/AppBundle/Form/UserType.php
| ... | ... | @@ -129,6 +129,10 @@ class UserType extends AbstractType |
| 129 | 129 | ), |
| 130 | 130 | 'class' => 'AppBundle:Escalafones', |
| 131 | 131 | 'choice_label' => 'getNombre', |
| 132 | + 'query_builder' => function(EntityRepository $er) { | |
| 133 | + return $er->createQueryBuilder('u') | |
| 134 | + ->orderBy('u.id', 'ASC'); | |
| 135 | + }, | |
| 132 | 136 | )) |
| 133 | 137 | ->add('fecha_oposicion', BirthdayType::class, array( |
| 134 | 138 | 'label' => 'Fecha Concurso de Oposición', | ... | ... |