Commit bc82bb8aeec6ff719246b6aedfcab59662d54215
1 parent
53f5d7569c
Exists in
master
añadida la funcion to string
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
app/Resources/views/solicitudes/adscripcion_show.twig
@@ -107,7 +107,7 @@ | @@ -107,7 +107,7 @@ | ||
107 | {% endfor %} | 107 | {% endfor %} |
108 | <div class="row"> | 108 | <div class="row"> |
109 | <div class="col-md-9"> | 109 | <div class="col-md-9"> |
110 | - <h4 class="page-head-line">Solicitud de Adscripción número | 110 | + <h4 class="page-head-line">{{ servicio.IdServicioCe.nombre }} |
111 | <code>CEA-{{ todo.idInstitucion.idEjeParroquia.IdEje.abreviacion }}-{{ todo.adscripcion.anoAdscripcion }}-{{ todo.adscripcion.correlativoAdscripcion }}</code>: | 111 | <code>CEA-{{ todo.idInstitucion.idEjeParroquia.IdEje.abreviacion }}-{{ todo.adscripcion.anoAdscripcion }}-{{ todo.adscripcion.correlativoAdscripcion }}</code>: |
112 | {{ todo }} | 112 | {{ todo }} |
113 | </h4> | 113 | </h4> |
src/AppBundle/Entity/DocenteEscala.php
@@ -203,11 +203,14 @@ public function getFechaEscala() | @@ -203,11 +203,14 @@ public function getFechaEscala() | ||
203 | { | 203 | { |
204 | return $this->idRolInstitucion; | 204 | return $this->idRolInstitucion; |
205 | } | 205 | } |
206 | - | ||
207 | - | ||
208 | - | ||
209 | - | ||
210 | 206 | ||
207 | + /** | ||
208 | + * @return string | ||
209 | + */ | ||
210 | + public function __toString() | ||
211 | + { | ||
212 | + return $this->getidEscala()->getNombre(); | ||
213 | + } | ||
211 | 214 | ||
212 | 215 | ||
213 | } | 216 | } |