From 0df4353688b5a4d3e938a22c4fff82ac7039cb50 Mon Sep 17 00:00:00 2001 From: Edgar Gonzalez Date: Tue, 23 Jan 2018 11:05:12 -0400 Subject: [PATCH] inicializando proyecto de practica --- .gitignore | 12 + README.md | 4 + app/.htaccess | 7 + app/AppCache.php | 7 + app/AppKernel.php | 36 + app/Resources/views/base.html.twig | 13 + app/Resources/views/default/index.html.twig | 76 + app/SymfonyRequirements.php | 806 +++++++ app/autoload.php | 11 + app/cache/.gitkeep | 0 app/check.php | 141 ++ app/config/config.yml | 67 + app/config/config_dev.yml | 34 + app/config/config_prod.yml | 27 + app/config/config_test.yml | 16 + app/config/parameters.yml.dist | 19 + app/config/routing.yml | 8 + app/config/routing_dev.yml | 14 + app/config/security.yml | 24 + app/config/services.yml | 9 + app/console | 27 + app/logs/.gitkeep | 0 app/phpunit.xml.dist | 38 + composer.json | 64 + composer.lock | 2291 ++++++++++++++++++++ src/.htaccess | 7 + src/AppBundle/AppBundle.php | 9 + src/AppBundle/Controller/DefaultController.php | 21 + .../Tests/Controller/DefaultControllerTest.php | 18 + .../Controller/DefaultController.php | 17 + src/UBV/PracticaBundle/Entity/Aldea.php | 497 +++++ .../PracticaBundle/Entity/AldeaMallaCurricula.php | 237 ++ .../Entity/AldeaMallaCurriculaRepository.php | 15 + src/UBV/PracticaBundle/Entity/AldeaPrograma.php | 128 ++ .../Entity/AldeaProgramaRepository.php | 15 + src/UBV/PracticaBundle/Entity/AldeaRepository.php | 35 + src/UBV/PracticaBundle/Entity/AldeaTelefono.php | 127 ++ .../Entity/AldeaTelefonoRepository.php | 15 + src/UBV/PracticaBundle/Entity/AldeaTipo.php | 121 ++ .../PracticaBundle/Entity/AldeaTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Ambiente.php | 325 +++ src/UBV/PracticaBundle/Entity/AmbienteDetalle.php | 254 +++ .../Entity/AmbienteDetalleRepository.php | 15 + src/UBV/PracticaBundle/Entity/AmbienteEspacio.php | 214 ++ .../Entity/AmbienteEspacioRepository.php | 15 + .../PracticaBundle/Entity/AmbienteRepository.php | 34 + src/UBV/PracticaBundle/Entity/Arancel.php | 253 +++ .../PracticaBundle/Entity/ArancelRepository.php | 15 + src/UBV/PracticaBundle/Entity/AreaConocimiento.php | 99 + .../Entity/AreaConocimientoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Aspirante.php | 446 ++++ src/UBV/PracticaBundle/Entity/AspiranteEstatus.php | 177 ++ .../Entity/AspiranteEstatusRepository.php | 15 + .../PracticaBundle/Entity/AspiranteRepository.php | 88 + src/UBV/PracticaBundle/Entity/AspiranteTipo.php | 194 ++ src/UBV/PracticaBundle/Entity/Banco.php | 157 ++ src/UBV/PracticaBundle/Entity/BancoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Candidato.php | 783 +++++++ .../PracticaBundle/Entity/CandidatoRepository.php | 242 +++ src/UBV/PracticaBundle/Entity/CargaAcademica.php | 238 ++ .../Entity/CargaAcademicaRepository.php | 15 + src/UBV/PracticaBundle/Entity/CentroEstudio.php | 207 ++ .../Entity/CentroEstudioRepository.php | 15 + src/UBV/PracticaBundle/Entity/Ciudad.php | 139 ++ src/UBV/PracticaBundle/Entity/CiudadRepository.php | 15 + src/UBV/PracticaBundle/Entity/ComiteTipo.php | 110 + .../PracticaBundle/Entity/ComiteTipoRepository.php | 15 + .../PracticaBundle/Entity/ComitepfaIntegrante.php | 212 ++ .../Entity/ComitepfaIntegranteRepository.php | 15 + src/UBV/PracticaBundle/Entity/Competencia.php | 139 ++ .../Entity/CompetenciaRepository.php | 15 + src/UBV/PracticaBundle/Entity/Convenio.php | 121 ++ .../PracticaBundle/Entity/ConvenioRepository.php | 15 + src/UBV/PracticaBundle/Entity/CorreoTipo.php | 162 ++ .../PracticaBundle/Entity/CorreoTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/CuentaBancaria.php | 201 ++ .../Entity/CuentaBancariaRepository.php | 15 + .../PracticaBundle/Entity/CuentaBancariaTipo.php | 120 + .../Entity/CuentaBancariaTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Deposito.php | 331 +++ src/UBV/PracticaBundle/Entity/DepositoDetalle.php | 127 ++ .../Entity/DepositoDetalleRepository.php | 15 + .../PracticaBundle/Entity/DepositoRepository.php | 15 + src/UBV/PracticaBundle/Entity/DepositoTipo.php | 142 ++ .../Entity/DepositoTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/DiaSemana.php | 110 + .../PracticaBundle/Entity/DiaSemanaRepository.php | 15 + src/UBV/PracticaBundle/Entity/Discapacidad.php | 150 ++ .../Entity/DiscapacidadRepository.php | 15 + src/UBV/PracticaBundle/Entity/Docente.php | 336 +++ src/UBV/PracticaBundle/Entity/DocenteAldea.php | 99 + .../Entity/DocenteAldeaRepository.php | 15 + .../PracticaBundle/Entity/DocenteDedicacion.php | 194 ++ .../Entity/DocenteDedicacionRepository.php | 15 + src/UBV/PracticaBundle/Entity/DocenteEstatus.php | 110 + .../Entity/DocenteEstatusRepository.php | 15 + .../PracticaBundle/Entity/DocenteRepository.php | 15 + .../Entity/DocumentoIdentidadTipo.php | 190 ++ .../Entity/DocumentoIdentidadTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/DomicilioDetalle.php | 127 ++ .../Entity/DomicilioDetalleRepository.php | 15 + .../PracticaBundle/Entity/DomicilioDetalleTipo.php | 110 + .../Entity/DomicilioDetalleTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/DomicilioPersona.php | 169 ++ .../Entity/DomicilioPersonaRepository.php | 15 + src/UBV/PracticaBundle/Entity/EjeFormacion.php | 110 + .../Entity/EjeFormacionRepository.php | 15 + src/UBV/PracticaBundle/Entity/EjeMunicipal.php | 171 ++ .../Entity/EjeMunicipalRepository.php | 33 + src/UBV/PracticaBundle/Entity/EjeRegional.php | 171 ++ .../Entity/EjeRegionalRepository.php | 15 + src/UBV/PracticaBundle/Entity/Estado.php | 251 +++ src/UBV/PracticaBundle/Entity/EstadoCivil.php | 189 ++ .../Entity/EstadoCivilRepository.php | 15 + src/UBV/PracticaBundle/Entity/EstadoRepository.php | 34 + src/UBV/PracticaBundle/Entity/Estudiante.php | 208 ++ .../PracticaBundle/Entity/EstudianteDetalle.php | 282 +++ .../Entity/EstudianteDetalleRepository.php | 15 + .../PracticaBundle/Entity/EstudianteDocumento.php | 334 +++ .../Entity/EstudianteDocumentoRepository.php | 146 ++ .../PracticaBundle/Entity/EstudianteRepository.php | 15 + src/UBV/PracticaBundle/Entity/Etnia.php | 155 ++ src/UBV/PracticaBundle/Entity/EtniaRepository.php | 15 + .../PracticaBundle/Entity/ExpedienteDocumento.php | 99 + .../Entity/ExpedienteDocumentoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Frecuencia.php | 110 + .../PracticaBundle/Entity/FrecuenciaRepository.php | 15 + src/UBV/PracticaBundle/Entity/Genero.php | 189 ++ src/UBV/PracticaBundle/Entity/GeneroRepository.php | 15 + src/UBV/PracticaBundle/Entity/GradoAcademico.php | 183 ++ src/UBV/PracticaBundle/Entity/Grupo.php | 40 + src/UBV/PracticaBundle/Entity/GrupoRepository.php | 30 + src/UBV/PracticaBundle/Entity/Horario.php | 155 ++ .../PracticaBundle/Entity/HorarioRepository.php | 15 + src/UBV/PracticaBundle/Entity/Inscripcion.php | 111 + .../PracticaBundle/Entity/InscripcionDetalle.php | 183 ++ .../Entity/InscripcionDetalleRepository.php | 15 + .../Entity/InscripcionRepository.php | 15 + .../PracticaBundle/Entity/LineaInvestigacion.php | 154 ++ .../Entity/LineaInvestigacionRepository.php | 15 + src/UBV/PracticaBundle/Entity/MallaCurricular.php | 304 +++ .../Entity/MallaCurricularDetalle.php | 306 +++ .../Entity/MallaCurricularDetalleRepository.php | 15 + .../Entity/MallaCurricularRepository.php | 15 + src/UBV/PracticaBundle/Entity/ModalidadEstudio.php | 69 + .../Entity/ModalidadEstudioRepository.php | 15 + src/UBV/PracticaBundle/Entity/ModalidadMalla.php | 110 + .../Entity/ModalidadMallaRepository.php | 15 + src/UBV/PracticaBundle/Entity/Municipio.php | 171 ++ .../PracticaBundle/Entity/MunicipioRepository.php | 32 + src/UBV/PracticaBundle/Entity/Nacionalidad.php | 143 ++ .../Entity/NacionalidadRepository.php | 31 + src/UBV/PracticaBundle/Entity/NivelAcademico.php | 150 ++ .../Entity/NivelAcademicoRepository.php | 15 + src/UBV/PracticaBundle/Entity/OfertaAcademica.php | 208 ++ .../Entity/OfertaAcademicaDetalle.php | 140 ++ .../Entity/OfertaAcademicaDetalleRepository.php | 15 + .../Entity/OfertaAcademicaRepository.php | 15 + src/UBV/PracticaBundle/Entity/Pais.php | 212 ++ src/UBV/PracticaBundle/Entity/Parroquia.php | 241 ++ .../PracticaBundle/Entity/ParroquiaRepository.php | 32 + src/UBV/PracticaBundle/Entity/PeriodoAcademico.php | 258 +++ .../Entity/PeriodoAcademicoRepository.php | 37 + src/UBV/PracticaBundle/Entity/PeriodoEstatus.php | 142 ++ .../Entity/PeriodoEstatusRepository.php | 15 + src/UBV/PracticaBundle/Entity/Persona.php | 917 ++++++++ src/UBV/PracticaBundle/Entity/PersonaCorreo.php | 132 ++ .../Entity/PersonaCorreoRepository.php | 34 + .../PracticaBundle/Entity/PersonaDiscapacidad.php | 155 ++ .../Entity/PersonaDiscapacidadRepository.php | 15 + src/UBV/PracticaBundle/Entity/PersonaEtnia.php | 99 + .../Entity/PersonaEtniaRepository.php | 15 + .../PracticaBundle/Entity/PersonaNacionalidad.php | 187 ++ .../Entity/PersonaNacionalidadRepository.php | 35 + .../PracticaBundle/Entity/PersonaRepository.php | 425 ++++ src/UBV/PracticaBundle/Entity/PersonaTelefono.php | 130 ++ .../Entity/PersonaTelefonoRepository.php | 15 + .../Entity/PersonalAdministrativo.php | 99 + .../Entity/PersonalAdministrativoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Programa.php | 508 +++++ src/UBV/PracticaBundle/Entity/ProgramaNivel.php | 171 ++ .../Entity/ProgramaNivelRepository.php | 32 + .../PracticaBundle/Entity/ProgramaRepository.php | 42 + src/UBV/PracticaBundle/Entity/ProgramaTipo.php | 205 ++ .../Entity/ProgramaTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/RequisitoGrado.php | 185 ++ .../Entity/RequisitoGradoRepository.php | 15 + .../PracticaBundle/Entity/RequisitoInscripcion.php | 216 ++ .../Entity/RequisitoInscripcionRepository.php | 53 + src/UBV/PracticaBundle/Entity/Seccion.php | 197 ++ .../PracticaBundle/Entity/SeccionRepository.php | 15 + .../PracticaBundle/Entity/TelefonoCodigoArea.php | 263 +++ .../Entity/TelefonoCodigoAreaRepository.php | 33 + src/UBV/PracticaBundle/Entity/TelefonoTipo.php | 122 ++ .../Entity/TelefonoTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/TipoEspacio.php | 110 + .../Entity/TipoEspacioRepository.php | 15 + src/UBV/PracticaBundle/Entity/Tramo.php | 234 ++ src/UBV/PracticaBundle/Entity/TramoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Trayecto.php | 236 ++ .../PracticaBundle/Entity/TrayectoRepository.php | 15 + src/UBV/PracticaBundle/Entity/Turno.php | 178 ++ src/UBV/PracticaBundle/Entity/TurnoRepository.php | 15 + .../PracticaBundle/Entity/UnidadAdministrativa.php | 320 +++ .../Entity/UnidadAdministrativaRepository.php | 34 + .../Entity/UnidadAdministrativaTelefono.php | 127 ++ .../UnidadAdministrativaTelefonoRepository.php | 15 + src/UBV/PracticaBundle/Entity/UnidadCurricular.php | 138 ++ .../Entity/UnidadCurricularDetalle.php | 282 +++ .../Entity/UnidadCurricularDetalleRepository.php | 15 + .../Entity/UnidadCurricularRepository.php | 15 + .../PracticaBundle/Entity/UnidadCurricularTipo.php | 110 + .../Entity/UnidadCurricularTipoRepository.php | 15 + src/UBV/PracticaBundle/Entity/UnidadTributaria.php | 125 ++ .../Entity/UnidadTributariaRepository.php | 15 + .../PracticaBundle/Resources/config/services.yml | 4 + .../Resources/views/Default/index.html.twig | 1 + src/UBV/PracticaBundle/UBVPracticaBundle.php | 9 + .../Controller/DefaultControllerTest.php | 17 + web/.htaccess | 68 + web/app.php | 17 + web/app_dev.php | 29 + web/apple-touch-icon.png | Bin 0 -> 2092 bytes web/config.php | 338 +++ web/favicon.ico | Bin 0 -> 6518 bytes web/robots.txt | 5 + 226 files changed, 25689 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 app/.htaccess create mode 100644 app/AppCache.php create mode 100644 app/AppKernel.php create mode 100644 app/Resources/views/base.html.twig create mode 100644 app/Resources/views/default/index.html.twig create mode 100644 app/SymfonyRequirements.php create mode 100644 app/autoload.php create mode 100644 app/cache/.gitkeep create mode 100644 app/check.php create mode 100644 app/config/config.yml create mode 100644 app/config/config_dev.yml create mode 100644 app/config/config_prod.yml create mode 100644 app/config/config_test.yml create mode 100644 app/config/parameters.yml.dist create mode 100644 app/config/routing.yml create mode 100644 app/config/routing_dev.yml create mode 100644 app/config/security.yml create mode 100644 app/config/services.yml create mode 100755 app/console create mode 100644 app/logs/.gitkeep create mode 100644 app/phpunit.xml.dist create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 src/.htaccess create mode 100644 src/AppBundle/AppBundle.php create mode 100644 src/AppBundle/Controller/DefaultController.php create mode 100644 src/AppBundle/Tests/Controller/DefaultControllerTest.php create mode 100644 src/UBV/PracticaBundle/Controller/DefaultController.php create mode 100644 src/UBV/PracticaBundle/Entity/Aldea.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaPrograma.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaTelefono.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Ambiente.php create mode 100644 src/UBV/PracticaBundle/Entity/AmbienteDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AmbienteEspacio.php create mode 100644 src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AmbienteRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Arancel.php create mode 100644 src/UBV/PracticaBundle/Entity/ArancelRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AreaConocimiento.php create mode 100644 src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Aspirante.php create mode 100644 src/UBV/PracticaBundle/Entity/AspiranteEstatus.php create mode 100644 src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AspiranteRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/AspiranteTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/Banco.php create mode 100644 src/UBV/PracticaBundle/Entity/BancoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Candidato.php create mode 100644 src/UBV/PracticaBundle/Entity/CandidatoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/CargaAcademica.php create mode 100644 src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/CentroEstudio.php create mode 100644 src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Ciudad.php create mode 100644 src/UBV/PracticaBundle/Entity/CiudadRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ComiteTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ComitepfaIntegrante.php create mode 100644 src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Competencia.php create mode 100644 src/UBV/PracticaBundle/Entity/CompetenciaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Convenio.php create mode 100644 src/UBV/PracticaBundle/Entity/ConvenioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/CorreoTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/CuentaBancaria.php create mode 100644 src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/CuentaBancariaTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Deposito.php create mode 100644 src/UBV/PracticaBundle/Entity/DepositoDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DepositoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DepositoTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DiaSemana.php create mode 100644 src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Discapacidad.php create mode 100644 src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Docente.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteAldea.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteDedicacion.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteEstatus.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DocenteRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioDetalleTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioDetalleTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioPersona.php create mode 100644 src/UBV/PracticaBundle/Entity/DomicilioPersonaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeFormacion.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeFormacionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeMunicipal.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeMunicipalRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeRegional.php create mode 100644 src/UBV/PracticaBundle/Entity/EjeRegionalRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Estado.php create mode 100644 src/UBV/PracticaBundle/Entity/EstadoCivil.php create mode 100644 src/UBV/PracticaBundle/Entity/EstadoCivilRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EstadoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Estudiante.php create mode 100644 src/UBV/PracticaBundle/Entity/EstudianteDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/EstudianteDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EstudianteDocumento.php create mode 100644 src/UBV/PracticaBundle/Entity/EstudianteDocumentoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/EstudianteRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Etnia.php create mode 100644 src/UBV/PracticaBundle/Entity/EtniaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ExpedienteDocumento.php create mode 100644 src/UBV/PracticaBundle/Entity/ExpedienteDocumentoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Frecuencia.php create mode 100644 src/UBV/PracticaBundle/Entity/FrecuenciaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Genero.php create mode 100644 src/UBV/PracticaBundle/Entity/GeneroRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/GradoAcademico.php create mode 100644 src/UBV/PracticaBundle/Entity/Grupo.php create mode 100644 src/UBV/PracticaBundle/Entity/GrupoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Horario.php create mode 100644 src/UBV/PracticaBundle/Entity/HorarioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Inscripcion.php create mode 100644 src/UBV/PracticaBundle/Entity/InscripcionDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/InscripcionDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/InscripcionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/LineaInvestigacion.php create mode 100644 src/UBV/PracticaBundle/Entity/LineaInvestigacionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/MallaCurricular.php create mode 100644 src/UBV/PracticaBundle/Entity/MallaCurricularDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/MallaCurricularDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/MallaCurricularRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ModalidadEstudio.php create mode 100644 src/UBV/PracticaBundle/Entity/ModalidadEstudioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ModalidadMalla.php create mode 100644 src/UBV/PracticaBundle/Entity/ModalidadMallaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Municipio.php create mode 100644 src/UBV/PracticaBundle/Entity/MunicipioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Nacionalidad.php create mode 100644 src/UBV/PracticaBundle/Entity/NacionalidadRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/NivelAcademico.php create mode 100644 src/UBV/PracticaBundle/Entity/NivelAcademicoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/OfertaAcademica.php create mode 100644 src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/OfertaAcademicaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Pais.php create mode 100644 src/UBV/PracticaBundle/Entity/Parroquia.php create mode 100644 src/UBV/PracticaBundle/Entity/ParroquiaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PeriodoAcademico.php create mode 100644 src/UBV/PracticaBundle/Entity/PeriodoAcademicoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PeriodoEstatus.php create mode 100644 src/UBV/PracticaBundle/Entity/PeriodoEstatusRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Persona.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaCorreo.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaCorreoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaDiscapacidad.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaDiscapacidadRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaEtnia.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaEtniaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaNacionalidad.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaNacionalidadRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaTelefono.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonaTelefonoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonalAdministrativo.php create mode 100644 src/UBV/PracticaBundle/Entity/PersonalAdministrativoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Programa.php create mode 100644 src/UBV/PracticaBundle/Entity/ProgramaNivel.php create mode 100644 src/UBV/PracticaBundle/Entity/ProgramaNivelRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ProgramaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/ProgramaTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/ProgramaTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/RequisitoGrado.php create mode 100644 src/UBV/PracticaBundle/Entity/RequisitoGradoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/RequisitoInscripcion.php create mode 100644 src/UBV/PracticaBundle/Entity/RequisitoInscripcionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Seccion.php create mode 100644 src/UBV/PracticaBundle/Entity/SeccionRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/TelefonoCodigoArea.php create mode 100644 src/UBV/PracticaBundle/Entity/TelefonoCodigoAreaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/TelefonoTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/TelefonoTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/TipoEspacio.php create mode 100644 src/UBV/PracticaBundle/Entity/TipoEspacioRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Tramo.php create mode 100644 src/UBV/PracticaBundle/Entity/TramoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Trayecto.php create mode 100644 src/UBV/PracticaBundle/Entity/TrayectoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/Turno.php create mode 100644 src/UBV/PracticaBundle/Entity/TurnoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadAdministrativa.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadAdministrativaRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefono.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefonoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricular.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricularDetalle.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricularDetalleRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricularRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricularTipo.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadCurricularTipoRepository.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadTributaria.php create mode 100644 src/UBV/PracticaBundle/Entity/UnidadTributariaRepository.php create mode 100644 src/UBV/PracticaBundle/Resources/config/services.yml create mode 100644 src/UBV/PracticaBundle/Resources/views/Default/index.html.twig create mode 100644 src/UBV/PracticaBundle/UBVPracticaBundle.php create mode 100644 tests/UBVPracticaBundle/Controller/DefaultControllerTest.php create mode 100644 web/.htaccess create mode 100644 web/app.php create mode 100644 web/app_dev.php create mode 100644 web/apple-touch-icon.png create mode 100644 web/config.php create mode 100644 web/favicon.ico create mode 100644 web/robots.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2019be --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +/web/bundles/ +/app/bootstrap.php.cache +/app/cache/* +/app/config/parameters.yml +/app/logs/* +!app/cache/.gitkeep +!app/logs/.gitkeep +/app/phpunit.xml +/build/ +/vendor/ +/bin/ +/composer.phar diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b32e71 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +practica +======== + +A Symfony project created on January 23, 2018, 10:41 am. diff --git a/app/.htaccess b/app/.htaccess new file mode 100644 index 0000000..fb1de45 --- /dev/null +++ b/app/.htaccess @@ -0,0 +1,7 @@ + + Require all denied + + + Order deny,allow + Deny from all + diff --git a/app/AppCache.php b/app/AppCache.php new file mode 100644 index 0000000..639ec2c --- /dev/null +++ b/app/AppCache.php @@ -0,0 +1,7 @@ +getEnvironment(), array('dev', 'test'), true)) { + $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); + $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); + $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); + $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); + } + + return $bundles; + } + + public function registerContainerConfiguration(LoaderInterface $loader) + { + $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); + } +} diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig new file mode 100644 index 0000000..bafd28d --- /dev/null +++ b/app/Resources/views/base.html.twig @@ -0,0 +1,13 @@ + + + + + {% block title %}Welcome!{% endblock %} + {% block stylesheets %}{% endblock %} + + + + {% block body %}{% endblock %} + {% block javascripts %}{% endblock %} + + diff --git a/app/Resources/views/default/index.html.twig b/app/Resources/views/default/index.html.twig new file mode 100644 index 0000000..c720409 --- /dev/null +++ b/app/Resources/views/default/index.html.twig @@ -0,0 +1,76 @@ +{% extends 'base.html.twig' %} + +{% block body %} +
+
+
+

Welcome to Symfony {{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}

+
+ +
+

+ + + Your application is now ready. You can start working on it at: + {{ base_dir }} +

+
+ + + +
+
+{% endblock %} + +{% block stylesheets %} + +{% endblock %} diff --git a/app/SymfonyRequirements.php b/app/SymfonyRequirements.php new file mode 100644 index 0000000..b21edde --- /dev/null +++ b/app/SymfonyRequirements.php @@ -0,0 +1,806 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/* + * Users of PHP 5.2 should be able to run the requirements checks. + * This is why the file and all classes must be compatible with PHP 5.2+ + * (e.g. not using namespaces and closures). + * + * ************** CAUTION ************** + * + * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of + * the installation/update process. The original file resides in the + * SensioDistributionBundle. + * + * ************** CAUTION ************** + */ + +/** + * Represents a single PHP requirement, e.g. an installed extension. + * It can be a mandatory requirement or an optional recommendation. + * There is a special subclass, named PhpIniRequirement, to check a php.ini configuration. + * + * @author Tobias Schultze + */ +class Requirement +{ + private $fulfilled; + private $testMessage; + private $helpText; + private $helpHtml; + private $optional; + + /** + * Constructor that initializes the requirement. + * + * @param bool $fulfilled Whether the requirement is fulfilled + * @param string $testMessage The message for testing the requirement + * @param string $helpHtml The help text formatted in HTML for resolving the problem + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement + */ + public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false) + { + $this->fulfilled = (bool) $fulfilled; + $this->testMessage = (string) $testMessage; + $this->helpHtml = (string) $helpHtml; + $this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText; + $this->optional = (bool) $optional; + } + + /** + * Returns whether the requirement is fulfilled. + * + * @return bool true if fulfilled, otherwise false + */ + public function isFulfilled() + { + return $this->fulfilled; + } + + /** + * Returns the message for testing the requirement. + * + * @return string The test message + */ + public function getTestMessage() + { + return $this->testMessage; + } + + /** + * Returns the help text for resolving the problem. + * + * @return string The help text + */ + public function getHelpText() + { + return $this->helpText; + } + + /** + * Returns the help text formatted in HTML. + * + * @return string The HTML help + */ + public function getHelpHtml() + { + return $this->helpHtml; + } + + /** + * Returns whether this is only an optional recommendation and not a mandatory requirement. + * + * @return bool true if optional, false if mandatory + */ + public function isOptional() + { + return $this->optional; + } +} + +/** + * Represents a PHP requirement in form of a php.ini configuration. + * + * @author Tobias Schultze + */ +class PhpIniRequirement extends Requirement +{ + /** + * Constructor that initializes the requirement. + * + * @param string $cfgName The configuration name used for ini_get() + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. + * @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) + * @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement + */ + public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false) + { + $cfgValue = ini_get($cfgName); + + if (is_callable($evaluation)) { + if (null === $testMessage || null === $helpHtml) { + throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.'); + } + + $fulfilled = call_user_func($evaluation, $cfgValue); + } else { + if (null === $testMessage) { + $testMessage = sprintf('%s %s be %s in php.ini', + $cfgName, + $optional ? 'should' : 'must', + $evaluation ? 'enabled' : 'disabled' + ); + } + + if (null === $helpHtml) { + $helpHtml = sprintf('Set %s to %s in php.ini*.', + $cfgName, + $evaluation ? 'on' : 'off' + ); + } + + $fulfilled = $evaluation == $cfgValue; + } + + parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional); + } +} + +/** + * A RequirementCollection represents a set of Requirement instances. + * + * @author Tobias Schultze + */ +class RequirementCollection implements IteratorAggregate +{ + /** + * @var Requirement[] + */ + private $requirements = array(); + + /** + * Gets the current RequirementCollection as an Iterator. + * + * @return Traversable A Traversable interface + */ + public function getIterator() + { + return new ArrayIterator($this->requirements); + } + + /** + * Adds a Requirement. + * + * @param Requirement $requirement A Requirement instance + */ + public function add(Requirement $requirement) + { + $this->requirements[] = $requirement; + } + + /** + * Adds a mandatory requirement. + * + * @param bool $fulfilled Whether the requirement is fulfilled + * @param string $testMessage The message for testing the requirement + * @param string $helpHtml The help text formatted in HTML for resolving the problem + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + */ + public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null) + { + $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false)); + } + + /** + * Adds an optional recommendation. + * + * @param bool $fulfilled Whether the recommendation is fulfilled + * @param string $testMessage The message for testing the recommendation + * @param string $helpHtml The help text formatted in HTML for resolving the problem + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + */ + public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null) + { + $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true)); + } + + /** + * Adds a mandatory requirement in form of a php.ini configuration. + * + * @param string $cfgName The configuration name used for ini_get() + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. + * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) + * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + */ + public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) + { + $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false)); + } + + /** + * Adds an optional recommendation in form of a php.ini configuration. + * + * @param string $cfgName The configuration name used for ini_get() + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. + * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) + * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) + */ + public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) + { + $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true)); + } + + /** + * Adds a requirement collection to the current set of requirements. + * + * @param RequirementCollection $collection A RequirementCollection instance + */ + public function addCollection(RequirementCollection $collection) + { + $this->requirements = array_merge($this->requirements, $collection->all()); + } + + /** + * Returns both requirements and recommendations. + * + * @return Requirement[] + */ + public function all() + { + return $this->requirements; + } + + /** + * Returns all mandatory requirements. + * + * @return Requirement[] + */ + public function getRequirements() + { + $array = array(); + foreach ($this->requirements as $req) { + if (!$req->isOptional()) { + $array[] = $req; + } + } + + return $array; + } + + /** + * Returns the mandatory requirements that were not met. + * + * @return Requirement[] + */ + public function getFailedRequirements() + { + $array = array(); + foreach ($this->requirements as $req) { + if (!$req->isFulfilled() && !$req->isOptional()) { + $array[] = $req; + } + } + + return $array; + } + + /** + * Returns all optional recommendations. + * + * @return Requirement[] + */ + public function getRecommendations() + { + $array = array(); + foreach ($this->requirements as $req) { + if ($req->isOptional()) { + $array[] = $req; + } + } + + return $array; + } + + /** + * Returns the recommendations that were not met. + * + * @return Requirement[] + */ + public function getFailedRecommendations() + { + $array = array(); + foreach ($this->requirements as $req) { + if (!$req->isFulfilled() && $req->isOptional()) { + $array[] = $req; + } + } + + return $array; + } + + /** + * Returns whether a php.ini configuration is not correct. + * + * @return bool php.ini configuration problem? + */ + public function hasPhpIniConfigIssue() + { + foreach ($this->requirements as $req) { + if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) { + return true; + } + } + + return false; + } + + /** + * Returns the PHP configuration file (php.ini) path. + * + * @return string|false php.ini file path + */ + public function getPhpIniConfigPath() + { + return get_cfg_var('cfg_file_path'); + } +} + +/** + * This class specifies all requirements and optional recommendations that + * are necessary to run the Symfony Standard Edition. + * + * @author Tobias Schultze + * @author Fabien Potencier + */ +class SymfonyRequirements extends RequirementCollection +{ + const LEGACY_REQUIRED_PHP_VERSION = '5.3.3'; + const REQUIRED_PHP_VERSION = '5.5.9'; + + /** + * Constructor that initializes the requirements. + */ + public function __construct() + { + /* mandatory requirements follow */ + + $installedPhpVersion = phpversion(); + $requiredPhpVersion = $this->getPhpRequiredVersion(); + + $this->addRecommendation( + $requiredPhpVersion, + 'Vendors should be installed in order to check all requirements.', + 'Run the composer install command.', + 'Run the "composer install" command.' + ); + + if (false !== $requiredPhpVersion) { + $this->addRequirement( + version_compare($installedPhpVersion, $requiredPhpVersion, '>='), + sprintf('PHP version must be at least %s (%s installed)', $requiredPhpVersion, $installedPhpVersion), + sprintf('You are running PHP version "%s", but Symfony needs at least PHP "%s" to run. + Before using Symfony, upgrade your PHP installation, preferably to the latest version.', + $installedPhpVersion, $requiredPhpVersion), + sprintf('Install PHP %s or newer (installed version is %s)', $requiredPhpVersion, $installedPhpVersion) + ); + } + + $this->addRequirement( + version_compare($installedPhpVersion, '5.3.16', '!='), + 'PHP version must not be 5.3.16 as Symfony won\'t work properly with it', + 'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)' + ); + + $this->addRequirement( + is_dir(__DIR__.'/../vendor/composer'), + 'Vendor libraries must be installed', + 'Vendor libraries are missing. Install composer following instructions from http://getcomposer.org/. '. + 'Then run "php composer.phar install" to install them.' + ); + + $cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache'; + + $this->addRequirement( + is_writable($cacheDir), + 'app/cache/ or var/cache/ directory must be writable', + 'Change the permissions of either "app/cache/" or "var/cache/" directory so that the web server can write into it.' + ); + + $logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs'; + + $this->addRequirement( + is_writable($logsDir), + 'app/logs/ or var/logs/ directory must be writable', + 'Change the permissions of either "app/logs/" or "var/logs/" directory so that the web server can write into it.' + ); + + $this->addPhpIniRequirement( + 'date.timezone', true, false, + 'date.timezone setting must be set', + 'Set the "date.timezone" setting in php.ini* (like Europe/Paris).' + ); + + if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { + $timezones = array(); + foreach (DateTimeZone::listAbbreviations() as $abbreviations) { + foreach ($abbreviations as $abbreviation) { + $timezones[$abbreviation['timezone_id']] = true; + } + } + + $this->addRequirement( + isset($timezones[@date_default_timezone_get()]), + sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), + 'Your default timezone is not supported by PHP. Check for typos in your php.ini file and have a look at the list of deprecated timezones at http://php.net/manual/en/timezones.others.php.' + ); + } + + $this->addRequirement( + function_exists('iconv'), + 'iconv() must be available', + 'Install and enable the iconv extension.' + ); + + $this->addRequirement( + function_exists('json_encode'), + 'json_encode() must be available', + 'Install and enable the JSON extension.' + ); + + $this->addRequirement( + function_exists('session_start'), + 'session_start() must be available', + 'Install and enable the session extension.' + ); + + $this->addRequirement( + function_exists('ctype_alpha'), + 'ctype_alpha() must be available', + 'Install and enable the ctype extension.' + ); + + $this->addRequirement( + function_exists('token_get_all'), + 'token_get_all() must be available', + 'Install and enable the Tokenizer extension.' + ); + + $this->addRequirement( + function_exists('simplexml_import_dom'), + 'simplexml_import_dom() must be available', + 'Install and enable the SimpleXML extension.' + ); + + if (function_exists('apc_store') && ini_get('apc.enabled')) { + if (version_compare($installedPhpVersion, '5.4.0', '>=')) { + $this->addRequirement( + version_compare(phpversion('apc'), '3.1.13', '>='), + 'APC version must be at least 3.1.13 when using PHP 5.4', + 'Upgrade your APC extension (3.1.13+).' + ); + } else { + $this->addRequirement( + version_compare(phpversion('apc'), '3.0.17', '>='), + 'APC version must be at least 3.0.17', + 'Upgrade your APC extension (3.0.17+).' + ); + } + } + + $this->addPhpIniRequirement('detect_unicode', false); + + if (extension_loaded('suhosin')) { + $this->addPhpIniRequirement( + 'suhosin.executor.include.whitelist', + create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'), + false, + 'suhosin.executor.include.whitelist must be configured correctly in php.ini', + 'Add "phar" to suhosin.executor.include.whitelist in php.ini*.' + ); + } + + if (extension_loaded('xdebug')) { + $this->addPhpIniRequirement( + 'xdebug.show_exception_trace', false, true + ); + + $this->addPhpIniRequirement( + 'xdebug.scream', false, true + ); + + $this->addPhpIniRecommendation( + 'xdebug.max_nesting_level', + create_function('$cfgValue', 'return $cfgValue > 100;'), + true, + 'xdebug.max_nesting_level should be above 100 in php.ini', + 'Set "xdebug.max_nesting_level" to e.g. "250" in php.ini* to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.' + ); + } + + $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null; + + $this->addRequirement( + null !== $pcreVersion, + 'PCRE extension must be available', + 'Install the PCRE extension (version 8.0+).' + ); + + if (extension_loaded('mbstring')) { + $this->addPhpIniRequirement( + 'mbstring.func_overload', + create_function('$cfgValue', 'return (int) $cfgValue === 0;'), + true, + 'string functions should not be overloaded', + 'Set "mbstring.func_overload" to 0 in php.ini* to disable function overloading by the mbstring extension.' + ); + } + + /* optional recommendations follow */ + + if (file_exists(__DIR__.'/../vendor/composer')) { + require_once __DIR__.'/../vendor/autoload.php'; + + try { + $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); + + $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); + } catch (ReflectionException $e) { + $contents = ''; + } + $this->addRecommendation( + file_get_contents(__FILE__) === $contents, + 'Requirements file should be up-to-date', + 'Your requirements file is outdated. Run composer install and re-check your configuration.' + ); + } + + $this->addRecommendation( + version_compare($installedPhpVersion, '5.3.4', '>='), + 'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions', + 'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.' + ); + + $this->addRecommendation( + version_compare($installedPhpVersion, '5.3.8', '>='), + 'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156', + 'Install PHP 5.3.8 or newer if your project uses annotations.' + ); + + $this->addRecommendation( + version_compare($installedPhpVersion, '5.4.0', '!='), + 'You should not use PHP 5.4.0 due to the PHP bug #61453', + 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.' + ); + + $this->addRecommendation( + version_compare($installedPhpVersion, '5.4.11', '>='), + 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', + 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' + ); + + $this->addRecommendation( + (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) + || + version_compare($installedPhpVersion, '5.4.8', '>='), + 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', + 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' + ); + + if (null !== $pcreVersion) { + $this->addRecommendation( + $pcreVersion >= 8.0, + sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion), + 'PCRE 8.0+ is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.' + ); + } + + $this->addRecommendation( + class_exists('DomDocument'), + 'PHP-DOM and PHP-XML modules should be installed', + 'Install and enable the PHP-DOM and the PHP-XML modules.' + ); + + $this->addRecommendation( + function_exists('mb_strlen'), + 'mb_strlen() should be available', + 'Install and enable the mbstring extension.' + ); + + $this->addRecommendation( + function_exists('iconv'), + 'iconv() should be available', + 'Install and enable the iconv extension.' + ); + + $this->addRecommendation( + function_exists('utf8_decode'), + 'utf8_decode() should be available', + 'Install and enable the XML extension.' + ); + + $this->addRecommendation( + function_exists('filter_var'), + 'filter_var() should be available', + 'Install and enable the filter extension.' + ); + + if (!defined('PHP_WINDOWS_VERSION_BUILD')) { + $this->addRecommendation( + function_exists('posix_isatty'), + 'posix_isatty() should be available', + 'Install and enable the php_posix extension (used to colorize the CLI output).' + ); + } + + $this->addRecommendation( + extension_loaded('intl'), + 'intl extension should be available', + 'Install and enable the intl extension (used for validators).' + ); + + if (extension_loaded('intl')) { + // in some WAMP server installations, new Collator() returns null + $this->addRecommendation( + null !== new Collator('fr_FR'), + 'intl extension should be correctly configured', + 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' + ); + + // check for compatible ICU versions (only done when you have the intl extension) + if (defined('INTL_ICU_VERSION')) { + $version = INTL_ICU_VERSION; + } else { + $reflector = new ReflectionExtension('intl'); + + ob_start(); + $reflector->info(); + $output = strip_tags(ob_get_clean()); + + preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); + $version = $matches[1]; + } + + $this->addRecommendation( + version_compare($version, '4.0', '>='), + 'intl ICU version should be at least 4+', + 'Upgrade your intl extension with a newer ICU version (4+).' + ); + + $this->addPhpIniRecommendation( + 'intl.error_level', + create_function('$cfgValue', 'return (int) $cfgValue === 0;'), + true, + 'intl.error_level should be 0 in php.ini', + 'Set "intl.error_level" to "0" in php.ini* to inhibit the messages when an error occurs in ICU functions.' + ); + } + + $accelerator = + (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) + || + (extension_loaded('apc') && ini_get('apc.enabled')) + || + (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) + || + (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) + || + (extension_loaded('xcache') && ini_get('xcache.cacher')) + || + (extension_loaded('wincache') && ini_get('wincache.ocenabled')) + ; + + $this->addRecommendation( + $accelerator, + 'a PHP accelerator should be installed', + 'Install and/or enable a PHP accelerator (highly recommended).' + ); + + if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { + $this->addRecommendation( + $this->getRealpathCacheSize() >= 5 * 1024 * 1024, + 'realpath_cache_size should be at least 5M in php.ini', + 'Setting "realpath_cache_size" to e.g. "5242880" or "5M" in php.ini* may improve performance on Windows significantly in some cases.' + ); + } + + $this->addPhpIniRecommendation('short_open_tag', false); + + $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); + + $this->addPhpIniRecommendation('register_globals', false, true); + + $this->addPhpIniRecommendation('session.auto_start', false); + + $this->addRecommendation( + class_exists('PDO'), + 'PDO should be installed', + 'Install PDO (mandatory for Doctrine).' + ); + + if (class_exists('PDO')) { + $drivers = PDO::getAvailableDrivers(); + $this->addRecommendation( + count($drivers) > 0, + sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), + 'Install PDO drivers (mandatory for Doctrine).' + ); + } + } + + /** + * Loads realpath_cache_size from php.ini and converts it to int. + * + * (e.g. 16k is converted to 16384 int) + * + * @return int + */ + protected function getRealpathCacheSize() + { + $size = ini_get('realpath_cache_size'); + $size = trim($size); + $unit = ''; + if (!ctype_digit($size)) { + $unit = strtolower(substr($size, -1, 1)); + $size = (int) substr($size, 0, -1); + } + switch ($unit) { + case 'g': + return $size * 1024 * 1024 * 1024; + case 'm': + return $size * 1024 * 1024; + case 'k': + return $size * 1024; + default: + return (int) $size; + } + } + + /** + * Defines PHP required version from Symfony version. + * + * @return string|false The PHP required version or false if it could not be guessed + */ + protected function getPhpRequiredVersion() + { + if (!file_exists($path = __DIR__.'/../composer.lock')) { + return false; + } + + $composerLock = json_decode(file_get_contents($path), true); + foreach ($composerLock['packages'] as $package) { + $name = $package['name']; + if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { + continue; + } + + return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; + } + + return false; + } +} diff --git a/app/autoload.php b/app/autoload.php new file mode 100644 index 0000000..3152e76 --- /dev/null +++ b/app/autoload.php @@ -0,0 +1,11 @@ +getPhpIniConfigPath(); + +echo_title('Symfony Requirements Checker'); + +echo '> PHP is using the following php.ini file:'.PHP_EOL; +if ($iniPath) { + echo_style('green', ' '.$iniPath); +} else { + echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!'); +} + +echo PHP_EOL.PHP_EOL; + +echo '> Checking Symfony requirements:'.PHP_EOL.' '; + +$messages = array(); +foreach ($symfonyRequirements->getRequirements() as $req) { + if ($helpText = get_error_message($req, $lineSize)) { + echo_style('red', 'E'); + $messages['error'][] = $helpText; + } else { + echo_style('green', '.'); + } +} + +$checkPassed = empty($messages['error']); + +foreach ($symfonyRequirements->getRecommendations() as $req) { + if ($helpText = get_error_message($req, $lineSize)) { + echo_style('yellow', 'W'); + $messages['warning'][] = $helpText; + } else { + echo_style('green', '.'); + } +} + +if ($checkPassed) { + echo_block('success', 'OK', 'Your system is ready to run Symfony projects'); +} else { + echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects'); + + echo_title('Fix the following mandatory requirements', 'red'); + + foreach ($messages['error'] as $helpText) { + echo ' * '.$helpText.PHP_EOL; + } +} + +if (!empty($messages['warning'])) { + echo_title('Optional recommendations to improve your setup', 'yellow'); + + foreach ($messages['warning'] as $helpText) { + echo ' * '.$helpText.PHP_EOL; + } +} + +echo PHP_EOL; +echo_style('title', 'Note'); +echo ' The command console could use a different php.ini file'.PHP_EOL; +echo_style('title', '~~~~'); +echo ' than the one used with your web server. To be on the'.PHP_EOL; +echo ' safe side, please check the requirements from your web'.PHP_EOL; +echo ' server using the '; +echo_style('yellow', 'web/config.php'); +echo ' script.'.PHP_EOL; +echo PHP_EOL; + +exit($checkPassed ? 0 : 1); + +function get_error_message(Requirement $requirement, $lineSize) +{ + if ($requirement->isFulfilled()) { + return; + } + + $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; + $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; + + return $errorMessage; +} + +function echo_title($title, $style = null) +{ + $style = $style ?: 'title'; + + echo PHP_EOL; + echo_style($style, $title.PHP_EOL); + echo_style($style, str_repeat('~', strlen($title)).PHP_EOL); + echo PHP_EOL; +} + +function echo_style($style, $message) +{ + // ANSI color codes + $styles = array( + 'reset' => "\033[0m", + 'red' => "\033[31m", + 'green' => "\033[32m", + 'yellow' => "\033[33m", + 'error' => "\033[37;41m", + 'success' => "\033[37;42m", + 'title' => "\033[34m", + ); + $supports = has_color_support(); + + echo($supports ? $styles[$style] : '').$message.($supports ? $styles['reset'] : ''); +} + +function echo_block($style, $title, $message) +{ + $message = ' '.trim($message).' '; + $width = strlen($message); + + echo PHP_EOL.PHP_EOL; + + echo_style($style, str_repeat(' ', $width).PHP_EOL); + echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL); + echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL); + echo_style($style, str_repeat(' ', $width).PHP_EOL); +} + +function has_color_support() +{ + static $support; + + if (null === $support) { + if (DIRECTORY_SEPARATOR == '\\') { + $support = false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); + } else { + $support = function_exists('posix_isatty') && @posix_isatty(STDOUT); + } + } + + return $support; +} diff --git a/app/config/config.yml b/app/config/config.yml new file mode 100644 index 0000000..d2770c9 --- /dev/null +++ b/app/config/config.yml @@ -0,0 +1,67 @@ +imports: + - { resource: parameters.yml } + - { resource: security.yml } + - { resource: services.yml } + - { resource: "@UBVPracticaBundle/Resources/config/services.yml" } + +# Put parameters here that don't need to change on each machine where the app is deployed +# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration +parameters: + locale: en + +framework: + #esi: ~ + #translator: { fallbacks: ['%locale%'] } + secret: '%secret%' + router: + resource: '%kernel.root_dir%/config/routing.yml' + strict_requirements: ~ + form: ~ + csrf_protection: ~ + validation: { enable_annotations: true } + #serializer: { enable_annotations: true } + templating: + engines: ['twig'] + default_locale: '%locale%' + trusted_hosts: ~ + trusted_proxies: ~ + session: + # handler_id set to null will use default session handler from php.ini + handler_id: ~ + fragments: ~ + http_method_override: true + +# Twig Configuration +twig: + debug: '%kernel.debug%' + strict_variables: '%kernel.debug%' + +# Doctrine Configuration +doctrine: + dbal: + driver: pdo_mysql + host: '%database_host%' + port: '%database_port%' + dbname: '%database_name%' + user: '%database_user%' + password: '%database_password%' + charset: UTF8 + # if using pdo_sqlite as your database driver: + # 1. add the path in parameters.yml + # e.g. database_path: '%kernel.root_dir%/data/data.db3' + # 2. Uncomment database_path in parameters.yml.dist + # 3. Uncomment next line: + #path: '%database_path%' + + orm: + auto_generate_proxy_classes: '%kernel.debug%' + naming_strategy: doctrine.orm.naming_strategy.underscore + auto_mapping: true + +# Swiftmailer Configuration +swiftmailer: + transport: '%mailer_transport%' + host: '%mailer_host%' + username: '%mailer_user%' + password: '%mailer_password%' + spool: { type: memory } diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml new file mode 100644 index 0000000..a616d33 --- /dev/null +++ b/app/config/config_dev.yml @@ -0,0 +1,34 @@ +imports: + - { resource: config.yml } + +framework: + router: + resource: '%kernel.root_dir%/config/routing_dev.yml' + strict_requirements: true + profiler: { only_exceptions: false } + +web_profiler: + toolbar: true + intercept_redirects: false + +monolog: + handlers: + main: + type: stream + path: '%kernel.logs_dir%/%kernel.environment%.log' + level: debug + channels: ['!event'] + console: + type: console + channels: ['!event', '!doctrine'] + # uncomment to get logging in your browser + # you may have to allow bigger header sizes in your Web server configuration + #firephp: + # type: firephp + # level: info + #chromephp: + # type: chromephp + # level: info + +#swiftmailer: +# delivery_addresses: ['me@example.com'] diff --git a/app/config/config_prod.yml b/app/config/config_prod.yml new file mode 100644 index 0000000..4925c38 --- /dev/null +++ b/app/config/config_prod.yml @@ -0,0 +1,27 @@ +imports: + - { resource: config.yml } + +#framework: +# validation: +# cache: validator.mapping.cache.doctrine.apc +# serializer: +# cache: serializer.mapping.cache.apc + +#doctrine: +# orm: +# metadata_cache_driver: apc +# result_cache_driver: apc +# query_cache_driver: apc + +monolog: + handlers: + main: + type: fingers_crossed + action_level: error + handler: nested + nested: + type: stream + path: '%kernel.logs_dir%/%kernel.environment%.log' + level: debug + console: + type: console diff --git a/app/config/config_test.yml b/app/config/config_test.yml new file mode 100644 index 0000000..2f6d925 --- /dev/null +++ b/app/config/config_test.yml @@ -0,0 +1,16 @@ +imports: + - { resource: config_dev.yml } + +framework: + test: ~ + session: + storage_id: session.storage.mock_file + profiler: + collect: false + +web_profiler: + toolbar: false + intercept_redirects: false + +swiftmailer: + disable_delivery: true diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist new file mode 100644 index 0000000..8b2e34f --- /dev/null +++ b/app/config/parameters.yml.dist @@ -0,0 +1,19 @@ +# This file is a "template" of what your parameters.yml file should look like +# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. +# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration +parameters: + database_host: 127.0.0.1 + database_port: ~ + database_name: symfony + database_user: root + database_password: ~ + # You should uncomment this if you want to use pdo_sqlite + #database_path: "%kernel.root_dir%/data.db3" + + mailer_transport: smtp + mailer_host: 127.0.0.1 + mailer_user: ~ + mailer_password: ~ + + # A secret key that's used to generate certain security-related tokens + secret: ThisTokenIsNotSoSecretChangeIt diff --git a/app/config/routing.yml b/app/config/routing.yml new file mode 100644 index 0000000..c62f4ba --- /dev/null +++ b/app/config/routing.yml @@ -0,0 +1,8 @@ +ubv_practica: + resource: "@UBVPracticaBundle/Controller/" + type: annotation + prefix: / + +app: + resource: '@AppBundle/Controller/' + type: annotation diff --git a/app/config/routing_dev.yml b/app/config/routing_dev.yml new file mode 100644 index 0000000..20602eb --- /dev/null +++ b/app/config/routing_dev.yml @@ -0,0 +1,14 @@ +_wdt: + resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' + prefix: /_wdt + +_profiler: + resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' + prefix: /_profiler + +_errors: + resource: '@TwigBundle/Resources/config/routing/errors.xml' + prefix: /_error + +_main: + resource: routing.yml diff --git a/app/config/security.yml b/app/config/security.yml new file mode 100644 index 0000000..0e0b7cb --- /dev/null +++ b/app/config/security.yml @@ -0,0 +1,24 @@ +# To get started with security, check out the documentation: +# https://symfony.com/doc/current/security.html +security: + + # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded + providers: + in_memory: + memory: ~ + + firewalls: + # disables authentication for assets and the profiler, adapt it according to your needs + dev: + pattern: ^/(_(profiler|wdt)|css|images|js)/ + security: false + + main: + anonymous: ~ + # activate different ways to authenticate + + # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate + #http_basic: ~ + + # https://symfony.com/doc/current/security/form_login_setup.html + #form_login: ~ diff --git a/app/config/services.yml b/app/config/services.yml new file mode 100644 index 0000000..39be764 --- /dev/null +++ b/app/config/services.yml @@ -0,0 +1,9 @@ +# Learn more about services, parameters and containers at +# https://symfony.com/doc/current/service_container.html +parameters: + #parameter_name: value + +services: + #service_name: + # class: AppBundle\Directory\ClassName + # arguments: ['@another_service_name', 'plain_value', '%parameter_name%'] diff --git a/app/console b/app/console new file mode 100755 index 0000000..f6fd8e5 --- /dev/null +++ b/app/console @@ -0,0 +1,27 @@ +#!/usr/bin/env php +getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); +$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; + +if ($debug) { + Debug::enable(); +} + +$kernel = new AppKernel($env, $debug); +$application = new Application($kernel); +$application->run($input); diff --git a/app/logs/.gitkeep b/app/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist new file mode 100644 index 0000000..454e74d --- /dev/null +++ b/app/phpunit.xml.dist @@ -0,0 +1,38 @@ + + + + + + + + + + + + ../src/*/*Bundle/Tests + ../src/*/Bundle/*Bundle/Tests + ../src/*Bundle/Tests + + + + + + ../src + + ../src/*Bundle/Resources + ../src/*Bundle/Tests + ../src/*/*Bundle/Resources + ../src/*/*Bundle/Tests + ../src/*/Bundle/*Bundle/Resources + ../src/*/Bundle/*Bundle/Tests + + + + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fff46cb --- /dev/null +++ b/composer.json @@ -0,0 +1,64 @@ +{ + "name": "egonzalezf/practica", + "license": "proprietary", + "type": "project", + "autoload": { + "psr-4": { + "": "src/" + }, + "classmap": [ + "app/AppKernel.php", + "app/AppCache.php" + ] + }, + "autoload-dev": { + "files": [ + "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" + ] + }, + "require": { + "php": ">=5.3.9", + "doctrine/doctrine-bundle": "~1.4", + "doctrine/orm": "^2.4.8", + "incenteev/composer-parameter-handler": "~2.0", + "sensio/distribution-bundle": "~4.0", + "sensio/framework-extra-bundle": "^3.0.2", + "symfony/monolog-bundle": "^3.0.2", + "symfony/swiftmailer-bundle": "~2.3,>=2.3.10", + "symfony/symfony": "2.8.*", + "twig/twig": "^1.0||^2.0" + }, + "require-dev": { + "sensio/generator-bundle": "~3.0", + "symfony/phpunit-bridge": "~2.7" + }, + "scripts": { + "symfony-scripts": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" + ], + "post-install-cmd": [ + "@symfony-scripts" + ], + "post-update-cmd": [ + "@symfony-scripts" + ] + }, + "config": { + "bin-dir": "bin", + "sort-packages": true + }, + "extra": { + "symfony-app-dir": "app", + "symfony-web-dir": "web", + "symfony-assets-install": "relative", + "incenteev-parameters": { + "file": "app/config/parameters.yml" + }, + "branch-alias": null + } +} \ No newline at end of file diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..18b25f4 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2291 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "content-hash": "e6c3f22ccb31b0ca5a5bedbf3c4b8096", + "packages": [ + { + "name": "doctrine/annotations", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/annotations.git", + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97", + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97", + "shasum": "" + }, + "require": { + "doctrine/lexer": "1.*", + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "doctrine/cache": "1.*", + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Docblock Annotations Parser", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "annotations", + "docblock", + "parser" + ], + "time": "2017-02-24T16:22:25+00:00" + }, + { + "name": "doctrine/cache", + "version": "v1.6.2", + "source": { + "type": "git", + "url": "https://github.com/doctrine/cache.git", + "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/cache/zipball/eb152c5100571c7a45470ff2a35095ab3f3b900b", + "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b", + "shasum": "" + }, + "require": { + "php": "~5.5|~7.0" + }, + "conflict": { + "doctrine/common": ">2.2,<2.4" + }, + "require-dev": { + "phpunit/phpunit": "~4.8|~5.0", + "predis/predis": "~1.0", + "satooshi/php-coveralls": "~0.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Caching library offering an object-oriented API for many cache backends", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "cache", + "caching" + ], + "time": "2017-07-22T12:49:21+00:00" + }, + { + "name": "doctrine/collections", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/collections.git", + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/collections/zipball/1a4fb7e902202c33cce8c55989b945612943c2ba", + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "doctrine/coding-standard": "~0.1@dev", + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "psr-0": { + "Doctrine\\Common\\Collections\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Collections Abstraction library", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "array", + "collections", + "iterator" + ], + "time": "2017-01-03T10:49:41+00:00" + }, + { + "name": "doctrine/common", + "version": "v2.7.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/common.git", + "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/common/zipball/4acb8f89626baafede6ee5475bc5844096eba8a9", + "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9", + "shasum": "" + }, + "require": { + "doctrine/annotations": "1.*", + "doctrine/cache": "1.*", + "doctrine/collections": "1.*", + "doctrine/inflector": "1.*", + "doctrine/lexer": "1.*", + "php": "~5.6|~7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Common Library for Doctrine projects", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "annotations", + "collections", + "eventmanager", + "persistence", + "spl" + ], + "time": "2017-07-22T08:35:12+00:00" + }, + { + "name": "doctrine/dbal", + "version": "v2.5.13", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "729340d8d1eec8f01bff708e12e449a3415af873" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/729340d8d1eec8f01bff708e12e449a3415af873", + "reference": "729340d8d1eec8f01bff708e12e449a3415af873", + "shasum": "" + }, + "require": { + "doctrine/common": ">=2.4,<2.8-dev", + "php": ">=5.3.2" + }, + "require-dev": { + "phpunit/phpunit": "4.*", + "symfony/console": "2.*||^3.0" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5.x-dev" + } + }, + "autoload": { + "psr-0": { + "Doctrine\\DBAL\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Database Abstraction Layer", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "database", + "dbal", + "persistence", + "queryobject" + ], + "time": "2017-07-22T20:44:48+00:00" + }, + { + "name": "doctrine/doctrine-bundle", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/DoctrineBundle.git", + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/eb6e4fb904a459be28872765ab6e2d246aac7c87", + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87", + "shasum": "" + }, + "require": { + "doctrine/dbal": "^2.5.12", + "doctrine/doctrine-cache-bundle": "~1.2", + "jdorn/sql-formatter": "^1.2.16", + "php": "^5.5.9|^7.0", + "symfony/console": "~2.7|~3.0|~4.0", + "symfony/dependency-injection": "~2.7|~3.0|~4.0", + "symfony/doctrine-bridge": "~2.7|~3.0|~4.0", + "symfony/framework-bundle": "~2.7|~3.0|~4.0" + }, + "conflict": { + "symfony/http-foundation": "<2.6" + }, + "require-dev": { + "doctrine/orm": "~2.3", + "phpunit/phpunit": "^4.8.36|^5.7|^6.4", + "satooshi/php-coveralls": "^1.0", + "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", + "symfony/property-info": "~2.8|~3.0|~4.0", + "symfony/validator": "~2.7|~3.0|~4.0", + "symfony/web-profiler-bundle": "~2.7|~3.0|~4.0", + "symfony/yaml": "~2.7|~3.0|~4.0", + "twig/twig": "~1.26|~2.0" + }, + "suggest": { + "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", + "symfony/web-profiler-bundle": "To use the data collector." + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "1.8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Bundle\\DoctrineBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Doctrine Project", + "homepage": "http://www.doctrine-project.org/" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony DoctrineBundle", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "database", + "dbal", + "orm", + "persistence" + ], + "time": "2017-11-24T13:09:19+00:00" + }, + { + "name": "doctrine/doctrine-cache-bundle", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/doctrine/DoctrineCacheBundle.git", + "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", + "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", + "shasum": "" + }, + "require": { + "doctrine/cache": "^1.4.2", + "doctrine/inflector": "~1.0", + "php": ">=5.3.2", + "symfony/doctrine-bridge": "~2.2|~3.0|~4.0" + }, + "require-dev": { + "instaclick/coding-standard": "~1.1", + "instaclick/object-calisthenics-sniffs": "dev-master", + "instaclick/symfony2-coding-standard": "dev-remaster", + "phpunit/phpunit": "~4", + "predis/predis": "~0.8", + "satooshi/php-coveralls": "^1.0", + "squizlabs/php_codesniffer": "~1.5", + "symfony/console": "~2.2|~3.0|~4.0", + "symfony/finder": "~2.2|~3.0|~4.0", + "symfony/framework-bundle": "~2.2|~3.0|~4.0", + "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", + "symfony/security-acl": "~2.3|~3.0", + "symfony/validator": "~2.2|~3.0|~4.0", + "symfony/yaml": "~2.2|~3.0|~4.0" + }, + "suggest": { + "symfony/security-acl": "For using this bundle to cache ACLs" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Bundle\\DoctrineCacheBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Fabio B. Silva", + "email": "fabio.bat.silva@gmail.com" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@hotmail.com" + }, + { + "name": "Doctrine Project", + "homepage": "http://www.doctrine-project.org/" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Bundle for Doctrine Cache", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "cache", + "caching" + ], + "time": "2017-10-12T17:23:29+00:00" + }, + { + "name": "doctrine/inflector", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "require-dev": { + "phpunit/phpunit": "4.*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-0": { + "Doctrine\\Common\\Inflector\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Common String Manipulations with regard to casing and singular/plural rules.", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "inflection", + "pluralize", + "singularize", + "string" + ], + "time": "2015-11-06T14:35:42+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14T21:17:01+00:00" + }, + { + "name": "doctrine/lexer", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "Doctrine\\Common\\Lexer\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "lexer", + "parser" + ], + "time": "2014-09-09T13:34:57+00:00" + }, + { + "name": "doctrine/orm", + "version": "v2.5.14", + "source": { + "type": "git", + "url": "https://github.com/doctrine/doctrine2.git", + "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/810a7baf81462a5ddf10e8baa8cb94b6eec02754", + "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754", + "shasum": "" + }, + "require": { + "doctrine/cache": "~1.4", + "doctrine/collections": "~1.2", + "doctrine/common": ">=2.5-dev,<2.9-dev", + "doctrine/dbal": ">=2.5-dev,<2.7-dev", + "doctrine/instantiator": "^1.0.1", + "ext-pdo": "*", + "php": ">=5.4", + "symfony/console": "~2.5|~3.0|~4.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0", + "symfony/yaml": "~2.3|~3.0|~4.0" + }, + "suggest": { + "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" + }, + "bin": [ + "bin/doctrine", + "bin/doctrine.php" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6.x-dev" + } + }, + "autoload": { + "psr-0": { + "Doctrine\\ORM\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Object-Relational-Mapper for PHP", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "database", + "orm" + ], + "time": "2017-12-17T02:57:51+00:00" + }, + { + "name": "incenteev/composer-parameter-handler", + "version": "v2.1.2", + "source": { + "type": "git", + "url": "https://github.com/Incenteev/ParameterHandler.git", + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/yaml": "~2.3|~3.0" + }, + "require-dev": { + "composer/composer": "1.0.*@dev", + "phpspec/prophecy-phpunit": "~1.0", + "symfony/filesystem": "~2.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Incenteev\\ParameterHandler\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christophe Coevoet", + "email": "stof@notk.org" + } + ], + "description": "Composer script handling your ignored parameter file", + "homepage": "https://github.com/Incenteev/ParameterHandler", + "keywords": [ + "parameters management" + ], + "time": "2015-11-10T17:04:01+00:00" + }, + { + "name": "ircmaxell/password-compat", + "version": "v1.0.4", + "source": { + "type": "git", + "url": "https://github.com/ircmaxell/password_compat.git", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5c5cde8822a69545767f7c7f3058cb15ff84614c", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "4.*" + }, + "type": "library", + "autoload": { + "files": [ + "lib/password.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Anthony Ferrara", + "email": "ircmaxell@php.net", + "homepage": "http://blog.ircmaxell.com" + } + ], + "description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash", + "homepage": "https://github.com/ircmaxell/password_compat", + "keywords": [ + "hashing", + "password" + ], + "time": "2014-11-20T16:49:30+00:00" + }, + { + "name": "jdorn/sql-formatter", + "version": "v1.2.17", + "source": { + "type": "git", + "url": "https://github.com/jdorn/sql-formatter.git", + "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/64990d96e0959dff8e059dfcdc1af130728d92bc", + "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "lib" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeremy Dorn", + "email": "jeremy@jeremydorn.com", + "homepage": "http://jeremydorn.com/" + } + ], + "description": "a PHP SQL highlighting library", + "homepage": "https://github.com/jdorn/sql-formatter/", + "keywords": [ + "highlight", + "sql" + ], + "time": "2014-01-12T16:20:24+00:00" + }, + { + "name": "monolog/monolog", + "version": "1.23.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "jakub-onderka/php-parallel-lint": "0.9", + "php-amqplib/php-amqplib": "~2.4", + "php-console/php-console": "^3.1.3", + "phpunit/phpunit": "~4.5", + "phpunit/phpunit-mock-objects": "2.3.0", + "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "^5.3|^6.0" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "time": "2017-06-19T01:22:40+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v2.0.11", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2017-09-27T21:40:39+00:00" + }, + { + "name": "psr/log", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2016-10-10T12:19:37+00:00" + }, + { + "name": "sensio/distribution-bundle", + "version": "v4.0.39", + "target-dir": "Sensio/Bundle/DistributionBundle", + "source": { + "type": "git", + "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", + "reference": "bf582cc96becd7ae53f9fe8c4647d0a41c243a42" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/bf582cc96becd7ae53f9fe8c4647d0a41c243a42", + "reference": "bf582cc96becd7ae53f9fe8c4647d0a41c243a42", + "shasum": "" + }, + "require": { + "php": ">=5.3.9", + "sensiolabs/security-checker": "~3.0", + "symfony/class-loader": "~2.2", + "symfony/framework-bundle": "~2.3", + "symfony/process": "~2.2" + }, + "require-dev": { + "symfony/form": "~2.2", + "symfony/validator": "~2.2", + "symfony/yaml": "~2.2" + }, + "suggest": { + "symfony/form": "If you want to use the configurator", + "symfony/validator": "If you want to use the configurator", + "symfony/yaml": "If you want to use the configurator" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "Sensio\\Bundle\\DistributionBundle": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Base bundle for Symfony Distributions", + "keywords": [ + "configuration", + "distribution" + ], + "time": "2017-08-25T16:49:47+00:00" + }, + { + "name": "sensio/framework-extra-bundle", + "version": "v3.0.29", + "source": { + "type": "git", + "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", + "reference": "bb907234df776b68922eb4b25bfa061683597b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/bb907234df776b68922eb4b25bfa061683597b6a", + "reference": "bb907234df776b68922eb4b25bfa061683597b6a", + "shasum": "" + }, + "require": { + "doctrine/common": "~2.2", + "symfony/dependency-injection": "~2.3|~3.0", + "symfony/framework-bundle": "~2.3|~3.0|~4.0" + }, + "require-dev": { + "doctrine/doctrine-bundle": "~1.5", + "doctrine/orm": "~2.4,>=2.4.5", + "symfony/asset": "~2.7|~3.0|~4.0", + "symfony/browser-kit": "~2.3|~3.0|~4.0", + "symfony/dom-crawler": "~2.3|~3.0|~4.0", + "symfony/expression-language": "~2.4|~3.0|~4.0", + "symfony/finder": "~2.3|~3.0|~4.0", + "symfony/phpunit-bridge": "~3.2|~4.0", + "symfony/psr-http-message-bridge": "^0.3|^1.0", + "symfony/security-bundle": "~2.4|~3.0|~4.0", + "symfony/templating": "~2.3|~3.0|~4.0", + "symfony/translation": "~2.3|~3.0|~4.0", + "symfony/twig-bundle": "~2.3|~3.0|~4.0", + "symfony/yaml": "~2.3|~3.0|~4.0", + "twig/twig": "~1.12|~2.0", + "zendframework/zend-diactoros": "^1.3" + }, + "suggest": { + "symfony/expression-language": "", + "symfony/psr-http-message-bridge": "To use the PSR-7 converters", + "symfony/security-bundle": "" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Sensio\\Bundle\\FrameworkExtraBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "This bundle provides a way to configure your controllers with annotations", + "keywords": [ + "annotations", + "controllers" + ], + "time": "2017-12-14T19:03:23+00:00" + }, + { + "name": "sensiolabs/security-checker", + "version": "v3.0.7", + "source": { + "type": "git", + "url": "https://github.com/sensiolabs/security-checker.git", + "reference": "59a6a299e2f5612dc8692d40e84373703a5df1b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/59a6a299e2f5612dc8692d40e84373703a5df1b5", + "reference": "59a6a299e2f5612dc8692d40e84373703a5df1b5", + "shasum": "" + }, + "require": { + "symfony/console": "~2.0|~3.0" + }, + "bin": [ + "security-checker" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-0": { + "SensioLabs\\Security": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien.potencier@gmail.com" + } + ], + "description": "A security checker for your composer.lock", + "time": "2017-03-29T09:29:53+00:00" + }, + { + "name": "swiftmailer/swiftmailer", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/swiftmailer/swiftmailer.git", + "reference": "7ffc1ea296ed14bf8260b6ef11b80208dbadba91" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/7ffc1ea296ed14bf8260b6ef11b80208dbadba91", + "reference": "7ffc1ea296ed14bf8260b6ef11b80208dbadba91", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "mockery/mockery": "~0.9.1", + "symfony/phpunit-bridge": "~3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.4-dev" + } + }, + "autoload": { + "files": [ + "lib/swift_required.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Corbyn" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Swiftmailer, free feature-rich PHP mailer", + "homepage": "https://swiftmailer.symfony.com", + "keywords": [ + "email", + "mail", + "mailer" + ], + "time": "2018-01-23T07:37:21+00:00" + }, + { + "name": "symfony/monolog-bundle", + "version": "v3.1.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/monolog-bundle.git", + "reference": "2b41b8b6d2c6edb1a5494f02f8e4129be2a44784" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/2b41b8b6d2c6edb1a5494f02f8e4129be2a44784", + "reference": "2b41b8b6d2c6edb1a5494f02f8e4129be2a44784", + "shasum": "" + }, + "require": { + "monolog/monolog": "~1.22", + "php": ">=5.3.2", + "symfony/config": "~2.7|~3.0|~4.0", + "symfony/dependency-injection": "~2.7|~3.0|~4.0", + "symfony/http-kernel": "~2.7|~3.0|~4.0", + "symfony/monolog-bridge": "~2.7|~3.0|~4.0" + }, + "require-dev": { + "symfony/console": "~2.3|~3.0|~4.0", + "symfony/phpunit-bridge": "^3.3|^4.0", + "symfony/yaml": "~2.3|~3.0|~4.0" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bundle\\MonologBundle\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony MonologBundle", + "homepage": "http://symfony.com", + "keywords": [ + "log", + "logging" + ], + "time": "2017-11-06T16:02:17+00:00" + }, + { + "name": "symfony/polyfill-apcu", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-apcu.git", + "reference": "04f62674339602def515bff4bc6901fc1d4951e8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/04f62674339602def515bff4bc6901fc1d4951e8", + "reference": "04f62674339602def515bff4bc6901fc1d4951e8", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Apcu\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "apcu", + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-intl-icu", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-icu.git", + "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/d2bb2ef00dd8605d6fbd4db53ed4af1395953497", + "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/intl": "~2.3|~3.0|~4.0" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's ICU-related data and classes", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "icu", + "intl", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-php54", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php54.git", + "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/d7810a14b2c6c1aff415e1bb755f611b3d5327bc", + "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php54\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-php55", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php55.git", + "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/b64e7f0c37ecf144ecc16668936eef94e628fbfd", + "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd", + "shasum": "" + }, + "require": { + "ircmaxell/password-compat": "~1.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php55\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-php56", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php56.git", + "reference": "265fc96795492430762c29be291a371494ba3a5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/265fc96795492430762c29be291a371494ba3a5b", + "reference": "265fc96795492430762c29be291a371494ba3a5b", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-util": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php56\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0|~2.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/polyfill-util", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-util.git", + "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/6e719200c8e540e0c0effeb31f96bdb344b94176", + "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Util\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony utilities for portability of PHP codes", + "homepage": "https://symfony.com", + "keywords": [ + "compat", + "compatibility", + "polyfill", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/security-acl", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/security-acl.git", + "reference": "ab4dfe2d95e038cd367dd04604487b0a3359bcff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/security-acl/zipball/ab4dfe2d95e038cd367dd04604487b0a3359bcff", + "reference": "ab4dfe2d95e038cd367dd04604487b0a3359bcff", + "shasum": "" + }, + "require": { + "php": ">=5.5.9", + "symfony/security-core": "~2.8|~3.0|~4.0" + }, + "require-dev": { + "doctrine/common": "~2.2", + "doctrine/dbal": "~2.2", + "psr/log": "~1.0", + "symfony/phpunit-bridge": "~2.8|~3.0|~4.0" + }, + "suggest": { + "doctrine/dbal": "For using the built-in ACL implementation", + "symfony/class-loader": "For using the ACL generateSql script", + "symfony/finder": "For using the ACL generateSql script" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Security\\Acl\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Security Component - ACL (Access Control List)", + "homepage": "https://symfony.com", + "time": "2017-07-21T06:01:18+00:00" + }, + { + "name": "symfony/swiftmailer-bundle", + "version": "v2.6.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/swiftmailer-bundle.git", + "reference": "c4808f5169efc05567be983909d00f00521c53ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/c4808f5169efc05567be983909d00f00521c53ec", + "reference": "c4808f5169efc05567be983909d00f00521c53ec", + "shasum": "" + }, + "require": { + "php": ">=5.3.2", + "swiftmailer/swiftmailer": "~4.2|~5.0", + "symfony/config": "~2.7|~3.0", + "symfony/dependency-injection": "~2.7|~3.0", + "symfony/http-kernel": "~2.7|~3.0" + }, + "require-dev": { + "symfony/console": "~2.7|~3.0", + "symfony/framework-bundle": "~2.7|~3.0", + "symfony/phpunit-bridge": "~3.3@dev", + "symfony/yaml": "~2.7|~3.0" + }, + "suggest": { + "psr/log": "Allows logging" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bundle\\SwiftmailerBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony SwiftmailerBundle", + "homepage": "http://symfony.com", + "time": "2017-10-19T01:06:41+00:00" + }, + { + "name": "symfony/symfony", + "version": "v2.8.33", + "source": { + "type": "git", + "url": "https://github.com/symfony/symfony.git", + "reference": "a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/symfony/zipball/a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c", + "reference": "a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c", + "shasum": "" + }, + "require": { + "doctrine/common": "~2.4", + "ext-xml": "*", + "php": ">=5.3.9", + "psr/log": "~1.0", + "symfony/polyfill-apcu": "~1.1", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php54": "~1.0", + "symfony/polyfill-php55": "~1.0", + "symfony/polyfill-php56": "~1.0", + "symfony/polyfill-php70": "~1.0", + "symfony/polyfill-util": "~1.0", + "symfony/security-acl": "~2.7|~3.0.0", + "twig/twig": "~1.34|~2.4" + }, + "conflict": { + "phpdocumentor/reflection": "<1.0.7", + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" + }, + "replace": { + "symfony/asset": "self.version", + "symfony/browser-kit": "self.version", + "symfony/class-loader": "self.version", + "symfony/config": "self.version", + "symfony/console": "self.version", + "symfony/css-selector": "self.version", + "symfony/debug": "self.version", + "symfony/debug-bundle": "self.version", + "symfony/dependency-injection": "self.version", + "symfony/doctrine-bridge": "self.version", + "symfony/dom-crawler": "self.version", + "symfony/event-dispatcher": "self.version", + "symfony/expression-language": "self.version", + "symfony/filesystem": "self.version", + "symfony/finder": "self.version", + "symfony/form": "self.version", + "symfony/framework-bundle": "self.version", + "symfony/http-foundation": "self.version", + "symfony/http-kernel": "self.version", + "symfony/intl": "self.version", + "symfony/ldap": "self.version", + "symfony/locale": "self.version", + "symfony/monolog-bridge": "self.version", + "symfony/options-resolver": "self.version", + "symfony/process": "self.version", + "symfony/property-access": "self.version", + "symfony/property-info": "self.version", + "symfony/proxy-manager-bridge": "self.version", + "symfony/routing": "self.version", + "symfony/security": "self.version", + "symfony/security-bundle": "self.version", + "symfony/security-core": "self.version", + "symfony/security-csrf": "self.version", + "symfony/security-guard": "self.version", + "symfony/security-http": "self.version", + "symfony/serializer": "self.version", + "symfony/stopwatch": "self.version", + "symfony/swiftmailer-bridge": "self.version", + "symfony/templating": "self.version", + "symfony/translation": "self.version", + "symfony/twig-bridge": "self.version", + "symfony/twig-bundle": "self.version", + "symfony/validator": "self.version", + "symfony/var-dumper": "self.version", + "symfony/web-profiler-bundle": "self.version", + "symfony/yaml": "self.version" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/data-fixtures": "1.0.*", + "doctrine/dbal": "~2.4", + "doctrine/doctrine-bundle": "~1.2", + "doctrine/orm": "~2.4,>=2.4.5", + "egulias/email-validator": "~1.2,>=1.2.1", + "monolog/monolog": "~1.11", + "ocramius/proxy-manager": "~0.4|~1.0|~2.0", + "phpdocumentor/reflection": "^1.0.7", + "sensio/framework-extra-bundle": "^3.0.2", + "symfony/phpunit-bridge": "~3.4|~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/", + "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/", + "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/", + "Symfony\\Bridge\\Swiftmailer\\": "src/Symfony/Bridge/Swiftmailer/", + "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", + "Symfony\\Bundle\\": "src/Symfony/Bundle/", + "Symfony\\Component\\": "src/Symfony/Component/" + }, + "classmap": [ + "src/Symfony/Component/Intl/Resources/stubs" + ], + "exclude-from-classmap": [ + "**/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "The Symfony PHP framework", + "homepage": "https://symfony.com", + "keywords": [ + "framework" + ], + "time": "2018-01-05T06:19:59+00:00" + }, + { + "name": "twig/twig", + "version": "v1.35.0", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/daa657073e55b0a78cce8fdd22682fddecc6385f", + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "~2.7", + "symfony/phpunit-bridge": "~3.3@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.35-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "http://twig.sensiolabs.org/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2017-09-27T18:06:46+00:00" + } + ], + "packages-dev": [ + { + "name": "sensio/generator-bundle", + "version": "v3.1.7", + "source": { + "type": "git", + "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", + "reference": "28cbaa244bd0816fd8908b93f90380bcd7b67a65" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/28cbaa244bd0816fd8908b93f90380bcd7b67a65", + "reference": "28cbaa244bd0816fd8908b93f90380bcd7b67a65", + "shasum": "" + }, + "require": { + "symfony/console": "~2.7|~3.0", + "symfony/framework-bundle": "~2.7|~3.0", + "symfony/process": "~2.7|~3.0", + "symfony/yaml": "~2.7|~3.0", + "twig/twig": "^1.28.2|^2.0" + }, + "require-dev": { + "doctrine/orm": "~2.4", + "symfony/doctrine-bridge": "~2.7|~3.0", + "symfony/filesystem": "~2.7|~3.0", + "symfony/phpunit-bridge": "^3.3" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Sensio\\Bundle\\GeneratorBundle\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "This bundle generates code for you", + "time": "2017-12-07T15:36:41+00:00" + }, + { + "name": "symfony/phpunit-bridge", + "version": "v2.8.33", + "source": { + "type": "git", + "url": "https://github.com/symfony/phpunit-bridge.git", + "reference": "13cdb256a345cf5b05ffa4b5fba0ee3c3902619c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/13cdb256a345cf5b05ffa4b5fba0ee3c3902619c", + "reference": "13cdb256a345cf5b05ffa4b5fba0ee3c3902619c", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "conflict": { + "phpunit/phpunit": ">=6.0" + }, + "suggest": { + "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "2.8-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Bridge\\PhpUnit\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony PHPUnit Bridge", + "homepage": "https://symfony.com", + "time": "2018-01-03T07:36:31+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.3.9" + }, + "platform-dev": [] +} diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..fb1de45 --- /dev/null +++ b/src/.htaccess @@ -0,0 +1,7 @@ + + Require all denied + + + Order deny,allow + Deny from all + diff --git a/src/AppBundle/AppBundle.php b/src/AppBundle/AppBundle.php new file mode 100644 index 0000000..05123b6 --- /dev/null +++ b/src/AppBundle/AppBundle.php @@ -0,0 +1,9 @@ +render('default/index.html.twig', array( + 'base_dir' => realpath($this->container->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR, + )); + } +} diff --git a/src/AppBundle/Tests/Controller/DefaultControllerTest.php b/src/AppBundle/Tests/Controller/DefaultControllerTest.php new file mode 100644 index 0000000..87989da --- /dev/null +++ b/src/AppBundle/Tests/Controller/DefaultControllerTest.php @@ -0,0 +1,18 @@ +request('GET', '/'); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text()); + } +} diff --git a/src/UBV/PracticaBundle/Controller/DefaultController.php b/src/UBV/PracticaBundle/Controller/DefaultController.php new file mode 100644 index 0000000..e11e6a4 --- /dev/null +++ b/src/UBV/PracticaBundle/Controller/DefaultController.php @@ -0,0 +1,17 @@ +render('UBVPracticaBundle:Default:index.html.twig'); + } +} diff --git a/src/UBV/PracticaBundle/Entity/Aldea.php b/src/UBV/PracticaBundle/Entity/Aldea.php new file mode 100644 index 0000000..b5f1f57 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Aldea.php @@ -0,0 +1,497 @@ +aldeaMallaCurriculas = new ArrayCollection(); + $this->aldeaProgramas = new ArrayCollection(); + $this->aldeaTelefonos = new ArrayCollection(); + $this->aspirantes = new ArrayCollection(); + $this->docenteAldeas = new ArrayCollection(); + $this->unidadAdministrativas = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo_sucre', 'codigo_aldea', 'estatus', 'aldea_tipo_id', 'ambiente_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Aldea + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo_sucre + * + * @param string $codigoSucre + * @return Aldea + */ + public function setCodigoSucre($codigoSucre) + { + $this->codigo_sucre = $codigoSucre; + + return $this; + } + + /** + * Get codigo_sucre + * + * @return string + */ + public function getCodigoSucre() + { + return $this->codigo_sucre; + } + + /** + * Set codigo_aldea + * + * @param string $codigoAldea + * @return Aldea + */ + public function setCodigoAldea($codigoAldea) + { + $this->codigo_aldea = $codigoAldea; + + return $this; + } + + /** + * Get codigo_aldea + * + * @return string + */ + public function getCodigoAldea() + { + return $this->codigo_aldea; + } + + /** + * Set estatus + * + * @param string $estatus + * @return Aldea + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return string + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + * @return Aldea + */ + public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas; + + return $this; + } + + /** + * Remove aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + */ + public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas); + } + + /** + * Get aldeaMallaCurriculas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaMallaCurriculas() + { + return $this->aldeaMallaCurriculas; + } + + /** + * Add aldeaProgramas + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas + * @return Aldea + */ + public function addAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) + { + $this->aldeaProgramas[] = $aldeaProgramas; + + return $this; + } + + /** + * Remove aldeaProgramas + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas + */ + public function removeAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) + { + $this->aldeaProgramas->removeElement($aldeaProgramas); + } + + /** + * Get aldeaProgramas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaProgramas() + { + return $this->aldeaProgramas; + } + + /** + * Add aldeaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos + * @return Aldea + */ + public function addAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) + { + $this->aldeaTelefonos[] = $aldeaTelefonos; + + return $this; + } + + /** + * Remove aldeaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos + */ + public function removeAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) + { + $this->aldeaTelefonos->removeElement($aldeaTelefonos); + } + + /** + * Get aldeaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaTelefonos() + { + return $this->aldeaTelefonos; + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return Aldea + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + /** + * Add docenteAldeas + * + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas + * @return Aldea + */ + public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) + { + $this->docenteAldeas[] = $docenteAldeas; + + return $this; + } + + /** + * Remove docenteAldeas + * + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas + */ + public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) + { + $this->docenteAldeas->removeElement($docenteAldeas); + } + + /** + * Get docenteAldeas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocenteAldeas() + { + return $this->docenteAldeas; + } + + /** + * Add unidadAdministrativas + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas + * @return Aldea + */ + public function addUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) + { + $this->unidadAdministrativas[] = $unidadAdministrativas; + + return $this; + } + + /** + * Remove unidadAdministrativas + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas + */ + public function removeUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) + { + $this->unidadAdministrativas->removeElement($unidadAdministrativas); + } + + /** + * Get unidadAdministrativas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadAdministrativas() + { + return $this->unidadAdministrativas; + } + + /** + * Set aldeaTipo + * + * @param \UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo + * @return Aldea + */ + public function setAldeaTipo(\UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo) + { + $this->aldeaTipo = $aldeaTipo; + + return $this; + } + + /** + * Get aldeaTipo + * + * @return \UBV\SurUbvBundle\Entity\AldeaTipo + */ + public function getAldeaTipo() + { + return $this->aldeaTipo; + } + + /** + * Set ambiente + * + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente + * @return Aldea + */ + public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) + { + $this->ambiente = $ambiente; + + return $this; + } + + /** + * Get ambiente + * + * @return \UBV\SurUbvBundle\Entity\Ambiente + */ + public function getAmbiente() + { + return $this->ambiente; + } + + public function __toString() + { + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Aldea + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php b/src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php new file mode 100644 index 0000000..b48a191 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php @@ -0,0 +1,237 @@ +estudianteDetalles = new ArrayCollection(); + $this->ofertaAcademicas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'estatus', 'aldea_id', 'malla_curricular_id', 'turno_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set estatus + * + * @param string $estatus + * @return AldeaMallaCurricula + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return string + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + * @return AldeaMallaCurricula + */ + public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles[] = $estudianteDetalles; + + return $this; + } + + /** + * Remove estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + */ + public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles->removeElement($estudianteDetalles); + } + + /** + * Get estudianteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDetalles() + { + return $this->estudianteDetalles; + } + + /** + * Add ofertaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas + * @return AldeaMallaCurricula + */ + public function addOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) + { + $this->ofertaAcademicas[] = $ofertaAcademicas; + + return $this; + } + + /** + * Remove ofertaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas + */ + public function removeOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) + { + $this->ofertaAcademicas->removeElement($ofertaAcademicas); + } + + /** + * Get ofertaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getOfertaAcademicas() + { + return $this->ofertaAcademicas; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return AldeaMallaCurricula + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } + + /** + * Set mallaCurricular + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular + * @return AldeaMallaCurricula + */ + public function setMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular) + { + $this->mallaCurricular = $mallaCurricular; + + return $this; + } + + /** + * Get mallaCurricular + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricular + */ + public function getMallaCurricular() + { + return $this->mallaCurricular; + } + + /** + * Set turno + * + * @param \UBV\SurUbvBundle\Entity\Turno $turno + * @return AldeaMallaCurricula + */ + public function setTurno(\UBV\SurUbvBundle\Entity\Turno $turno) + { + $this->turno = $turno; + + return $this; + } + + /** + * Get turno + * + * @return \UBV\SurUbvBundle\Entity\Turno + */ + public function getTurno() + { + return $this->turno; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php b/src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php new file mode 100644 index 0000000..c6d7e6b --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set codigo_opsu + * + * @param integer $codigoOpsu + * @return AldeaPrograma + */ + public function setCodigoOpsu($codigoOpsu) + { + $this->codigo_opsu = $codigoOpsu; + + return $this; + } + + /** + * Get codigo_opsu + * + * @return integer + */ + public function getCodigoOpsu() + { + return $this->codigo_opsu; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return AldeaPrograma + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return AldeaPrograma + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php b/src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php new file mode 100644 index 0000000..e4cefd8 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php @@ -0,0 +1,15 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('aldea') + ->from('UBVSurUbvBundle:Aldea', 'aldea') + ->Join('aldea.ambiente', 'ambiente', 'ambiente.id = aldea.ambiente_id') + ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia_id') + ->where('parroquia.id = :parroquia_id') + ->setParameter('parroquia_id',$parroquia_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaTelefono.php b/src/UBV/PracticaBundle/Entity/AldeaTelefono.php new file mode 100644 index 0000000..8f23509 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaTelefono.php @@ -0,0 +1,127 @@ +id; + } + + /** + * Set descripcion + * + * @param integer $descripcion + * @return AldeaTelefono + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return integer + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set telefonoCodigoArea + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea + * @return AldeaTelefono + */ + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) + { + $this->telefonoCodigoArea = $telefonoCodigoArea; + + return $this; + } + + /** + * Get telefonoCodigoArea + * + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea + */ + public function getTelefonoCodigoArea() + { + return $this->telefonoCodigoArea; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return AldeaTelefono + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php b/src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php new file mode 100644 index 0000000..27616de --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php @@ -0,0 +1,15 @@ +aldeas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AldeaTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add aldeas + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas + * @return AldeaTipo + */ + public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) + { + $this->aldeas[] = $aldeas; + + return $this; + } + + /** + * Remove aldeas + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas + */ + public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) + { + $this->aldeas->removeElement($aldeas); + } + + /** + * Get aldeas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeas() + { + return $this->aldeas; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php b/src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php new file mode 100644 index 0000000..7a88842 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php @@ -0,0 +1,15 @@ +aldeas = new ArrayCollection(); + $this->ambienteDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'direccion', 'coordenadas_utm_norte', 'coordenadas_utm_oeste', 'parroquia_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Ambiente + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Ambiente + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set direccion + * + * @param string $direccion + * @return Ambiente + */ + public function setDireccion($direccion) + { + $this->direccion = $direccion; + + return $this; + } + + /** + * Get direccion + * + * @return string + */ + public function getDireccion() + { + return $this->direccion; + } + + /** + * Set coordenadas_utm_norte + * + * @param string $coordenadasUtmNorte + * @return Ambiente + */ + public function setCoordenadasUtmNorte($coordenadasUtmNorte) + { + $this->coordenadas_utm_norte = $coordenadasUtmNorte; + + return $this; + } + + /** + * Get coordenadas_utm_norte + * + * @return string + */ + public function getCoordenadasUtmNorte() + { + return $this->coordenadas_utm_norte; + } + + /** + * Set coordenadas_utm_oeste + * + * @param string $coordenadasUtmOeste + * @return Ambiente + */ + public function setCoordenadasUtmOeste($coordenadasUtmOeste) + { + $this->coordenadas_utm_oeste = $coordenadasUtmOeste; + + return $this; + } + + /** + * Get coordenadas_utm_oeste + * + * @return string + */ + public function getCoordenadasUtmOeste() + { + return $this->coordenadas_utm_oeste; + } + + /** + * Add aldeas + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas + * @return Ambiente + */ + public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) + { + $this->aldeas[] = $aldeas; + + return $this; + } + + /** + * Remove aldeas + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas + */ + public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) + { + $this->aldeas->removeElement($aldeas); + } + + /** + * Get aldeas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeas() + { + return $this->aldeas; + } + + /** + * Add ambienteDetalles + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles + * @return Ambiente + */ + public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) + { + $this->ambienteDetalles[] = $ambienteDetalles; + + return $this; + } + + /** + * Remove ambienteDetalles + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles + */ + public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) + { + $this->ambienteDetalles->removeElement($ambienteDetalles); + } + + /** + * Get ambienteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbienteDetalles() + { + return $this->ambienteDetalles; + } + + /** + * Set parroquia + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia + * @return Ambiente + */ + public function setParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquia) + { + $this->parroquia = $parroquia; + + return $this; + } + + /** + * Get parroquia + * + * @return \UBV\SurUbvBundle\Entity\Parroquia + */ + public function getParroquia() + { + return $this->parroquia; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/AmbienteDetalle.php b/src/UBV/PracticaBundle/Entity/AmbienteDetalle.php new file mode 100644 index 0000000..95ad9e1 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AmbienteDetalle.php @@ -0,0 +1,254 @@ +ambienteDetalles = new ArrayCollection(); + $this->ambienteEspacios = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estatus', 'ambiente_id', 'dependencia_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AmbienteDetalle + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set estatus + * + * @param string $estatus + * @return AmbienteDetalle + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return string + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add ambienteDetalles + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles + * @return AmbienteDetalle + */ + public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) + { + $this->ambienteDetalles[] = $ambienteDetalles; + + return $this; + } + + /** + * Remove ambienteDetalles + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles + */ + public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) + { + $this->ambienteDetalles->removeElement($ambienteDetalles); + } + + /** + * Get ambienteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbienteDetalles() + { + return $this->ambienteDetalles; + } + + /** + * Add ambienteEspacios + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios + * @return AmbienteDetalle + */ + public function addAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) + { + $this->ambienteEspacios[] = $ambienteEspacios; + + return $this; + } + + /** + * Remove ambienteEspacios + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios + */ + public function removeAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) + { + $this->ambienteEspacios->removeElement($ambienteEspacios); + } + + /** + * Get ambienteEspacios + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbienteEspacios() + { + return $this->ambienteEspacios; + } + + /** + * Set ambiente + * + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente + * @return AmbienteDetalle + */ + public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) + { + $this->ambiente = $ambiente; + + return $this; + } + + /** + * Get ambiente + * + * @return \UBV\SurUbvBundle\Entity\Ambiente + */ + public function getAmbiente() + { + return $this->ambiente; + } + + /** + * Set ambienteDetalle + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle + * @return AmbienteDetalle + */ + public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle = null) + { + $this->ambienteDetalle = $ambienteDetalle; + + return $this; + } + + /** + * Get ambienteDetalle + * + * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle + */ + public function getAmbienteDetalle() + { + return $this->ambienteDetalle; + } + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php b/src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php new file mode 100644 index 0000000..03a1c02 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php @@ -0,0 +1,15 @@ +cargaAcademicas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'capacidad', 'tipo_espacio_id', 'ambiente_detalle_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AmbienteEspacio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set capacidad + * + * @param integer $capacidad + * @return AmbienteEspacio + */ + public function setCapacidad($capacidad) + { + $this->capacidad = $capacidad; + + return $this; + } + + /** + * Get capacidad + * + * @return integer + */ + public function getCapacidad() + { + return $this->capacidad; + } + + /** + * Add cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + * @return AmbienteEspacio + */ + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas[] = $cargaAcademicas; + + return $this; + } + + /** + * Remove cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + */ + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas->removeElement($cargaAcademicas); + } + + /** + * Get cargaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCargaAcademicas() + { + return $this->cargaAcademicas; + } + + /** + * Set tipoEspacio + * + * @param \UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio + * @return AmbienteEspacio + */ + public function setTipoEspacio(\UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio) + { + $this->tipoEspacio = $tipoEspacio; + + return $this; + } + + /** + * Get tipoEspacio + * + * @return \UBV\SurUbvBundle\Entity\TipoEspacio + */ + public function getTipoEspacio() + { + return $this->tipoEspacio; + } + + /** + * Set ambienteDetalle + * + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle + * @return AmbienteEspacio + */ + public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle) + { + $this->ambienteDetalle = $ambienteDetalle; + + return $this; + } + + /** + * Get ambienteDetalle + * + * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle + */ + public function getAmbienteDetalle() + { + return $this->ambienteDetalle; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php b/src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php new file mode 100644 index 0000000..0d63998 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php @@ -0,0 +1,15 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('ambiente') + ->from('UBVSurUbvBundle:Ambiente', 'ambiente') + ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia') + ->where('parroquia.id = :parroquia_id') + ->setParameter('parroquia_id',$parroquia_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/Arancel.php b/src/UBV/PracticaBundle/Entity/Arancel.php new file mode 100644 index 0000000..4dd4ea9 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Arancel.php @@ -0,0 +1,253 @@ +depositos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'fecha_inicio', 'fecha_fin', 'descripcion', 'cantidad_ut', 'estatus', 'clase'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set fecha_inicio + * + * @param \DateTime $fechaInicio + * @return Arancel + */ + public function setFechaInicio($fechaInicio) + { + $this->fecha_inicio = $fechaInicio; + + return $this; + } + + /** + * Get fecha_inicio + * + * @return \DateTime + */ + public function getFechaInicio() + { + return $this->fecha_inicio; + } + + /** + * Set fecha_fin + * + * @param \DateTime $fechaFin + * @return Arancel + */ + public function setFechaFin($fechaFin) + { + $this->fecha_fin = $fechaFin; + + return $this; + } + + /** + * Get fecha_fin + * + * @return \DateTime + */ + public function getFechaFin() + { + return $this->fecha_fin; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Arancel + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set cantidad_ut + * + * @param float $cantidadUt + * @return Arancel + */ + public function setCantidadUt($cantidadUt) + { + $this->cantidad_ut = $cantidadUt; + + return $this; + } + + /** + * Get cantidad_ut + * + * @return float + */ + public function getCantidadUt() + { + return $this->cantidad_ut; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return Arancel + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Set clase + * + * @param boolean $clase + * @return Arancel + */ + public function setClase($clase) + { + $this->clase = $clase; + + return $this; + } + + /** + * Get clase + * + * @return boolean + */ + public function getClase() + { + return $this->clase; + } + + /** + * Get depositos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDepositos() + { + return $this->depositos; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + * @return Arancel + */ + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos[] = $depositos; + + return $this; + } + + /** + * Remove depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + */ + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos->removeElement($depositos); + } +} diff --git a/src/UBV/PracticaBundle/Entity/ArancelRepository.php b/src/UBV/PracticaBundle/Entity/ArancelRepository.php new file mode 100644 index 0000000..55727d3 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ArancelRepository.php @@ -0,0 +1,15 @@ +centroEstudios = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AreaConocimiento + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set centroEstudio + * + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio + * @return AreaConocimiento + */ + public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio = null) + { + $this->centroEstudio = $centroEstudio; + + return $this; + } + + /** + * Get centroEstudio + * + * @return \UBV\SurUbvBundle\Entity\CentroEstudio + */ + public function getCentroEstudio() + { + return $this->centroEstudio; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php b/src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php new file mode 100644 index 0000000..950c953 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set promedio_nota + * + * @param float $promedioNota + * @return Aspirante + */ + public function setPromedioNota($promedioNota) + { + $this->promedio_nota = $promedioNota; + + return $this; + } + + /** + * Get promedio_nota + * + * @return float + */ + public function getPromedioNota() + { + return $this->promedio_nota; + } + + /** + * Set año_grado + * + * @param integer $añoGrado + * @return Aspirante + */ + public function setAñoGrado($añoGrado) + { + $this->año_grado = $añoGrado; + + return $this; + } + + /** + * Get año_grado + * + * @return integer + */ + public function getAñoGrado() + { + return $this->año_grado; + } + + /** + * Set periodo_asignado + * + * @param string $periodoAsignado + * @return Aspirante + */ + public function setPeriodoAsignado($periodoAsignado) + { + $this->periodo_asignado = $periodoAsignado; + + return $this; + } + + /** + * Get periodo_asignado + * + * @return string + */ + public function getPeriodoAsignado() + { + return $this->periodo_asignado; + } + + /** + * Set codigo_opsu + * + * @param string $codigoOpsu + * @return Aspirante + */ + public function setCodigoOpsu($codigoOpsu) + { + $this->codigo_opsu = $codigoOpsu; + + return $this; + } + + /** + * Get codigo_opsu + * + * @return string + */ + public function getCodigoOpsu() + { + return $this->codigo_opsu; + } + + /** + * Set institucion_tipo + * + * @param string $institucionTipo + * @return Aspirante + */ + public function setInstitucionTipo($institucionTipo) + { + $this->institucion_tipo = $institucionTipo; + + return $this; + } + + /** + * Get institucion_tipo + * + * @return string + */ + public function getInstitucionTipo() + { + return $this->institucion_tipo; + } + + /** + * Set institucion + * + * @param string $institucion + * @return Aspirante + */ + public function setInstitucion($institucion) + { + $this->institucion = $institucion; + + return $this; + } + + /** + * Get institucion + * + * @return string + */ + public function getInstitucion() + { + return $this->institucion; + } + + /** + * Set trabajo + * + * @param boolean $trabajo + * @return Aspirante + */ + public function setTrabajo($trabajo) + { + $this->trabajo = $trabajo; + + return $this; + } + + /** + * Get trabajo + * + * @return boolean + */ + public function getTrabajo() + { + return $this->trabajo; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return Aspirante + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona = null) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set aspiranteTipo + * + * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo + * @return Aspirante + */ + public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) + { + $this->aspiranteTipo = $aspiranteTipo; + + return $this; + } + + /** + * Get aspiranteTipo + * + * @return \UBV\SurUbvBundle\Entity\AspiranteTipo + */ + public function getAspiranteTipo() + { + return $this->aspiranteTipo; + } + + /** + * Set gradoAcademico + * + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico + * @return Aspirante + */ + public function setGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico) + { + $this->gradoAcademico = $gradoAcademico; + + return $this; + } + + /** + * Get gradoAcademico + * + * @return \UBV\SurUbvBundle\Entity\GradoAcademico + */ + public function getGradoAcademico() + { + return $this->gradoAcademico; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return Aspirante + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return Aspirante + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } + + /** + * Set aspiranteEstatus + * + * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus + * @return Aspirante + */ + public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) + { + $this->aspiranteEstatus = $aspiranteEstatus; + + return $this; + } + + /** + * Get aspiranteEstatus + * + * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus + */ + public function getAspiranteEstatus() + { + return $this->aspiranteEstatus; + } + + /** + * Set ano_grado + * + * @param integer $anoGrado + * @return Aspirante + */ + public function setAnoGrado($anoGrado) + { + $this->ano_grado = $anoGrado; + + return $this; + } + + /** + * Get ano_grado + * + * @return integer + */ + public function getAnoGrado() + { + return $this->ano_grado; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AspiranteEstatus.php b/src/UBV/PracticaBundle/Entity/AspiranteEstatus.php new file mode 100644 index 0000000..c002189 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AspiranteEstatus.php @@ -0,0 +1,177 @@ +candidatos = new ArrayCollection(); + $this->aspirantes = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AspiranteEstatus + */ + public function setDesripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDesripcion() + { + return $this->descripcion; + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return AspiranteEstatus + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + public function __toString(){ + return $this->getDesripcion(); + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AspiranteEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return AspiranteEstatus + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php b/src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php new file mode 100644 index 0000000..9717611 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php @@ -0,0 +1,15 @@ +getEntityManager(); + //die(var_dump($programaTipo)); + $result = $em->createQueryBuilder(); + + $dql = $result->select('aspirante') + ->from('UBVSurUbvBundle:Aspirante', 'aspirante') + ->Join('aspirante.persona', 'persona', 'aspirante.persona_id = persona.id') + ->Join('aspirante.programa', 'programa', 'aspirante.programa_id = programa.id') + ->Join('programa.programaTipo', 'tipoPrograma', 'programa.programa_tipo_id = tipoPrograma.id') + //->innerJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') + ->where('persona.id = :personaId') + ->AndWhere('programa.id = :programaId') + //->Andwhere('documentos.estatus = :estatusDocumentos') + ->setParameter('personaId', $personaId) + ->setParameter('programaId', $programaTipo) + //->setParameter('estatusDocumentos', true) + ->getQuery() + ->getOneOrNullResult(); + + //die(var_dump($dql)); + return $dql; + } + + public function findDatosAspirantes() { + + $em = $this->getEntityManager(); + + + //$primerNombre = $datos_form["primerNombre"]; + //$segundoNombre = $datos_form["segundoNombre"]; + //$primerApellido = $datos_form["primerApellido"]; + //$segundoApellido = $datos_form["segundoApellido"]; + + //$correoPersonal = $datos_form["correoPersonal"]; + + + $periodoAIniciar = $em->getRepository("UBVSurUbvBundle:PeriodoAcademico")->findObjetoPeriodoAcademicoByEstatus("Por Iniciar"); + //die(dump($periodoAIniciar["descripcion"])); + $result = $em->createQueryBuilder(); + + $dql = $result->select('aspirante.id as aspiranteId, aspirante.periodo_asignado as Periodo','aldea.descripcion as Aldea','aspiranteTipo.descripcion as aspiranteTipoDescripcion', + 'persona.id as personaId, persona.primer_nombre as primerNombre, persona.segundo_nombre as segundoNombre, persona.primer_apellido as primerApellido,' + .'persona.segundo_apellido as segundoApellido','programa.descripcion as ProgramaAsignado','documentoIdentidad.identificacion as Identificacion', + 'documentoIdentidadTipo.descripcion as DocumentoidentidadTipoDescripcion' + ) + ->from('UBVSurUbvBundle:Aspirante', 'aspirante') + ->leftJoin('aspirante.persona','persona','aspirante.persona_id = persona.id') + ->leftJoin('aspirante.aldea','aldea','aspirante.aldea_id = aldea.id') + ->leftJoin('aspirante.aspiranteTipo','aspiranteTipo','aspirante.tipo_id = aspiranteTipo.id') + ->leftJoin('aspirante.programa','programa','aspirante.programa_id = programa.id') + ->leftJoin('persona.personaNacionalidads','documentoIdentidad','persona.id = documentoIdentidad.persona_id') + ->leftJoin('documentoIdentidad.documentoIdentidadTipo','documentoIdentidadTipo','documentoIdentidad.documento>_identidad_tipo_id = documentoIdentidadTipo.id') + + ->where('aspirante.periodo_asignado LIKE :periodoAIniciar') + + ->setParameter('periodoAIniciar', '%' . $periodoAIniciar["descripcion"] . '%') + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + //die(dump($dql)); + + if (!empty($dql)) { + //die(var_dump($dql)); + return $dql; + } else { + //die("no trae nada"); + return false; + } + } + +} diff --git a/src/UBV/PracticaBundle/Entity/AspiranteTipo.php b/src/UBV/PracticaBundle/Entity/AspiranteTipo.php new file mode 100644 index 0000000..7e5a25b --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/AspiranteTipo.php @@ -0,0 +1,194 @@ +aspirantes = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + $this->estudiantes = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return AspiranteTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return AspiranteTipo + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + /** + * Add estudiantes + * + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes + * @return AspiranteTipo + */ + public function addEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) + { + $this->estudiantes[] = $estudiantes; + + return $this; + } + + /** + * Remove estudiantes + * + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes + */ + public function removeEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) + { + $this->estudiantes->removeElement($estudiantes); + } + + /** + * Get estudiantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudiantes() + { + return $this->estudiantes; + } + + public function __toString(){ + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return AspiranteTipo + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/Banco.php b/src/UBV/PracticaBundle/Entity/Banco.php new file mode 100644 index 0000000..1edfe31 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Banco.php @@ -0,0 +1,157 @@ +cuentaBancarias = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Banco + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Banco + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + * @return Banco + */ + public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias[] = $cuentaBancarias; + + return $this; + } + + /** + * Remove cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + */ + public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias->removeElement($cuentaBancarias); + } + + /** + * Get cuentaBancarias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCuentaBancarias() + { + return $this->cuentaBancarias; + } +} diff --git a/src/UBV/PracticaBundle/Entity/BancoRepository.php b/src/UBV/PracticaBundle/Entity/BancoRepository.php new file mode 100644 index 0000000..f034d07 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/BancoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set primer_nombre + * + * @param string $primerNombre + * @return Candidato + */ + public function setPrimerNombre($primerNombre) + { + $this->primer_nombre = $primerNombre; + + return $this; + } + + /** + * Get primer_nombre + * + * @return string + */ + public function getPrimerNombre() + { + return $this->primer_nombre; + } + + /** + * Set segundo_nombre + * + * @param string $segundoNombre + * @return Candidato + */ + public function setSegundoNombre($segundoNombre) + { + $this->segundo_nombre = $segundoNombre; + + return $this; + } + + /** + * Get segundo_nombre + * + * @return string + */ + public function getSegundoNombre() + { + return $this->segundo_nombre; + } + + /** + * Set primer_apellido + * + * @param string $primerApellido + * @return Candidato + */ + public function setPrimerApellido($primerApellido) + { + $this->primer_apellido = $primerApellido; + + return $this; + } + + /** + * Get primer_apellido + * + * @return string + */ + public function getPrimerApellido() + { + return $this->primer_apellido; + } + + /** + * Set segundo_apellido + * + * @param string $segundoApellido + * @return Candidato + */ + public function setSegundoApellido($segundoApellido) + { + $this->segundo_apellido = $segundoApellido; + + return $this; + } + + /** + * Get segundo_apellido + * + * @return string + */ + public function getSegundoApellido() + { + return $this->segundo_apellido; + } + + /** + * Set identificacion + * + * @param string $identificacion + * @return Candidato + */ + public function setIdentificacion($identificacion) + { + $this->identificacion = $identificacion; + + return $this; + } + + /** + * Get identificacion + * + * @return string + */ + public function getIdentificacion() + { + return $this->identificacion; + } + + /** + * Set fecha_nacimiento + * + * @param \DateTime $fechaNacimiento + * @return Candidato + */ + public function setFechaNacimiento($fechaNacimiento) + { + $this->fecha_nacimiento = $fechaNacimiento; + + return $this; + } + + /** + * Get fecha_nacimiento + * + * @return \DateTime + */ + public function getFechaNacimiento() + { + return $this->fecha_nacimiento; + } + + /** + * Set telefono + * + * @param string $telefono + * @return Candidato + */ + public function setTelefono($telefono) + { + $this->telefono = $telefono; + + return $this; + } + + /** + * Get telefono + * + * @return string + */ + public function getTelefono() + { + return $this->telefono; + } + + /** + * Set correo + * + * @param string $correo + * @return Candidato + */ + public function setCorreo($correo) + { + $this->correo = $correo; + + return $this; + } + + /** + * Get correo + * + * @return string + */ + public function getCorreo() + { + return $this->correo; + } + + /** + * Set id_opsu + * + * @param string $idOpsu + * @return Candidato + */ + public function setIdOpsu($idOpsu) + { + $this->id_opsu = $idOpsu; + + return $this; + } + + /** + * Get id_opsu + * + * @return string + */ + public function getIdOpsu() + { + return $this->id_opsu; + } + + /** + * Set ano_grado + * + * @param \DateTime $anoGrado + * @return Candidato + */ + public function setAnoGrado($anoGrado) + { + $this->ano_grado = $anoGrado; + + return $this; + } + + /** + * Get ano_grado + * + * @return \DateTime + */ + public function getAnoGrado() + { + return $this->ano_grado; + } + + /** + * Set trabaja + * + * @param boolean $trabaja + * @return Candidato + */ + public function setTrabaja($trabaja) + { + $this->trabaja = $trabaja; + + return $this; + } + + /** + * Get trabaja + * + * @return boolean + */ + public function getTrabaja() + { + return $this->trabaja; + } + + /** + * Set promedio_nota + * + * @param string $promedioNota + * @return Candidato + */ + public function setPromedioNota($promedioNota) + { + $this->promedio_nota = $promedioNota; + + return $this; + } + + /** + * Get promedio_nota + * + * @return string + */ + public function getPromedioNota() + { + return $this->promedio_nota; + } + + /** + * Set aspiranteTipo + * + * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo + * @return Candidato + */ + public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) + { + $this->aspiranteTipo = $aspiranteTipo; + + return $this; + } + + /** + * Get aspiranteTipo + * + * @return \UBV\SurUbvBundle\Entity\AspiranteTipo + */ + public function getAspiranteTipo() + { + return $this->aspiranteTipo; + } + + /** + * Set aspiranteEstatus + * + * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus + * @return Candidato + */ + public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) + { + $this->aspiranteEstatus = $aspiranteEstatus; + + return $this; + } + + /** + * Get aspiranteEstatus + * + * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus + */ + public function getAspiranteEstatus() + { + return $this->aspiranteEstatus; + } + + /** + * Set documentoIdentidadTipo + * + * @param \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo + * @return Candidato + */ + public function setDocumentoIdentidadTipo(\UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo) + { + $this->documentoIdentidadTipo = $documentoIdentidadTipo; + + return $this; + } + + /** + * Get documentoIdentidadTipo + * + * @return \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo + */ + public function getDocumentoIdentidadTipo() + { + return $this->documentoIdentidadTipo; + } + + /** + * Set genero + * + * @param \UBV\SurUbvBundle\Entity\Genero $genero + * @return Candidato + */ + public function setGenero(\UBV\SurUbvBundle\Entity\Genero $genero) + { + $this->genero = $genero; + + return $this; + } + + /** + * Get genero + * + * @return \UBV\SurUbvBundle\Entity\Genero + */ + public function getGenero() + { + return $this->genero; + } + + /** + * Set estadoCivil + * + * @param \UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil + * @return Candidato + */ + public function setEstadoCivil(\UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil) + { + $this->estadoCivil = $estadoCivil; + + return $this; + } + + /** + * Get estadoCivil + * + * @return \UBV\SurUbvBundle\Entity\EstadoCivil + */ + public function getEstadoCivil() + { + return $this->estadoCivil; + } + + /** + * Set telefonoCodigoArea + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea + * @return Candidato + */ + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) + { + $this->telefonoCodigoArea = $telefonoCodigoArea; + + return $this; + } + + /** + * Get telefonoCodigoArea + * + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea + */ + public function getTelefonoCodigoArea() + { + return $this->telefonoCodigoArea; + } + + /** + * Set estado + * + * @param \UBV\SurUbvBundle\Entity\Estado $estado + * @return Candidato + */ + public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado = null) + { + $this->estado = $estado; + + return $this; + } + + /** + * Get estado + * + * @return \UBV\SurUbvBundle\Entity\Estado + */ + public function getEstado() + { + return $this->estado; + } + + /** + * Set etnia + * + * @param \UBV\SurUbvBundle\Entity\Etnia $etnia + * @return Candidato + */ + public function setEtnia(\UBV\SurUbvBundle\Entity\Etnia $etnia = null) + { + $this->etnia = $etnia; + + return $this; + } + + /** + * Get etnia + * + * @return \UBV\SurUbvBundle\Entity\Etnia + */ + public function getEtnia() + { + return $this->etnia; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return Candidato + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return Candidato + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } + + /** + * Set convenio + * + * @param \UBV\SurUbvBundle\Entity\Convenio $convenio + * @return Candidato + */ + public function setConvenio(\UBV\SurUbvBundle\Entity\Convenio $convenio = null) + { + $this->convenio = $convenio; + + return $this; + } + + /** + * Get convenio + * + * @return \UBV\SurUbvBundle\Entity\Convenio + */ + public function getConvenio() + { + return $this->convenio; + } + + /** + * Set correoTipo + * + * @param \UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo + * @return Candidato + */ + public function setCorreoTipo(\UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo) + { + $this->correoTipo = $correoTipo; + + return $this; + } + + /** + * Get correoTipo + * + * @return \UBV\SurUbvBundle\Entity\CorreoTipo + */ + public function getCorreoTipo() + { + return $this->correoTipo; + } + + /** + * Set discapacidad + * + * @param \UBV\SurUbvBundle\Entity\Discapacidad $discapacidad + * @return Candidato + */ + public function setDiscapacidad(\UBV\SurUbvBundle\Entity\Discapacidad $discapacidad) + { + $this->discapacidad = $discapacidad; + + return $this; + } + + /** + * Get discapacidad + * + * @return \UBV\SurUbvBundle\Entity\Discapacidad + */ + public function getDiscapacidad() + { + return $this->discapacidad; + } + + /** + * Set periodoAcademico + * + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico + * @return Candidato + */ + public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) + { + $this->periodoAcademico = $periodoAcademico; + + return $this; + } + + /** + * Get periodoAcademico + * + * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico + */ + public function getPeriodoAcademico() + { + return $this->periodoAcademico; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CandidatoRepository.php b/src/UBV/PracticaBundle/Entity/CandidatoRepository.php new file mode 100644 index 0000000..dc13728 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CandidatoRepository.php @@ -0,0 +1,242 @@ +asignarValoresDeBusqueda($candidato); + $arregloCandidato = $this->findDatosCandidatos($datosBusqueda,$candidato); + //die(dump($arregloCandidato)); + return $arregloCandidato; + } + + private function findDatosCandidatos($datosBusqueda,$candidato){ + $em = $this->getEntityManager(); + + $programaAsignadoConsulta = $em->createQueryBuilder()->select('programa','programaTipo','aldea','aldeaPrograma','ambiente','parroquia','municipio','estado') + ->from('UBVSurUbvBundle:AldeaPrograma', 'aldeaPrograma') + ->LeftJoin('aldeaPrograma.aldea', 'aldea', 'aldeaPrograma.aldea_id = aldea.id') + ->LeftJoin('aldeaPrograma.programa', 'programa', 'aldeaPrograma.programa_id = programa.id') + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programaTipo.programa_id = programa.id') + ->LeftJoin('aldea.ambiente', 'ambiente', 'aldea.ambiente_id = ambiente.id') + ->LeftJoin('ambiente.parroquia', 'parroquia', 'ambiente.parroquia_id = parroquia.id') + ->LeftJoin('parroquia.municipio', 'municipio', 'parroquia.municipio_id = municipio.id') + ->LeftJoin('municipio.estado', 'estado', 'municipio.estado_id = estado.id') + ->where('aldeaPrograma.codigo_opsu= :codigoOpsuPrograma') + ->setParameter('codigoOpsuPrograma', '123') + ->getQuery() + ->getOneOrNullResult(); + + $etniaConsulta = $em->createQueryBuilder()->select('etnia') + ->from('UBVSurUbvBundle:Etnia', 'etnia') + ->where('etnia.descripcion= :etnia') + ->setParameter('etnia', $datosBusqueda["etnia"]) + ->getQuery() + ->getOneOrNullResult(); + + $discapacidadConsulta = $em->createQueryBuilder()->select('discapacidad') + ->from('UBVSurUbvBundle:Discapacidad', 'discapacidad') + ->where('discapacidad.descripcion= :discapacidad') + ->setParameter('discapacidad', $datosBusqueda["discapacidad"]) + ->getQuery() + ->getOneOrNullResult(); + + $periodoConsulta = $em->createQueryBuilder()->select('periodo') + ->from('UBVSurUbvBundle:PeriodoAcademico', 'periodo') + ->where('periodo.descripcion= :periodo') + ->setParameter('periodo', $datosBusqueda["periodo"]) + ->getQuery() + ->getOneOrNullResult(); + + $estadoCivilConsulta = $em->createQueryBuilder()->select('estadoCivil') + ->from('UBVSurUbvBundle:EstadoCivil', 'estadoCivil') + ->where('estadoCivil.codigo= :estadoCivil') + ->setParameter('estadoCivil', $datosBusqueda["estadoCivil"]) + ->getQuery() + ->getOneOrNullResult(); + + $generoConsulta = $em->createQueryBuilder()->select('genero') + ->from('UBVSurUbvBundle:Genero', 'genero') + ->where('genero.codigo= :genero') + ->setParameter('genero', $datosBusqueda["genero"]) + ->getQuery() + ->getOneOrNullResult(); + + $documentoIdentidadTipoConsulta = $em->createQueryBuilder()->select('documentoIdentidadTipo') + ->from('UBVSurUbvBundle:DocumentoIdentidadTipo', 'documentoIdentidadTipo') + ->where('documentoIdentidadTipo.codigo= :documentoIdentidadTipo') + ->setParameter('documentoIdentidadTipo', $datosBusqueda["documentoIdentidadTipo"]) + ->getQuery() + ->getOneOrNullResult(); + + $telefonoCodigoAreaConsulta = $em->createQueryBuilder()->select('telefonoCodigoArea') + ->from('UBVSurUbvBundle:TelefonoCodigoArea', 'telefonoCodigoArea') + ->where('telefonoCodigoArea.descripcion LIKE :telefonoCodigoArea') + ->setParameter('telefonoCodigoArea', '%'.$datosBusqueda["codigoArea"].'%') + ->getQuery() + ->getOneOrNullResult(); + + $correoTipoConsulta = $em->createQueryBuilder()->select('correoTipo') + ->from('UBVSurUbvBundle:CorreoTipo', 'correoTipo') + ->where('correoTipo.descripcion LIKE :correoTipo') + ->setParameter('correoTipo', '%Personal%') + ->getQuery() + ->getOneOrNullResult(); + + $aspiranteEstatusConsulta = $em->createQueryBuilder()->select('aspiranteEstatus') + ->from('UBVSurUbvBundle:AspiranteEstatus', 'aspiranteEstatus') + ->where('aspiranteEstatus.descripcion LIKE :aspiranteEstatus') + ->setParameter('aspiranteEstatus', 'No Inscrito') + ->getQuery() + ->getOneOrNullResult(); + + $arregloCosultas = array("AldeaPrograma"=>$programaAsignadoConsulta,"Etnia"=>$etniaConsulta,"Discapacidad"=>$discapacidadConsulta, + "PeriodoAcademico"=>$periodoConsulta,"EstadoCivil"=>$estadoCivilConsulta,"Genero"=>$generoConsulta, + "DocumentoIdentidadTipo"=>$documentoIdentidadTipoConsulta,"TelefonoCodigoArea"=>$telefonoCodigoAreaConsulta, + "CorreoTipo"=>$correoTipoConsulta,"AspiranteEstatus"=>$aspiranteEstatusConsulta, + ); + //die(dump($arregloCosultas)); + $arregloCandidato = $this->ordenarArregloCandidato($arregloCosultas, $candidato); + return $arregloCandidato; + } + + public function findCandidatoByIdenProg($candidato){ + $em = $this->getEntityManager(); + //die(dump($candidato["programaAsig"]->getProgramaTipo()->getId())); + $existeCandidato = $em->createQueryBuilder()->select('candidato','programa') + ->from('UBVSurUbvBundle:Candidato', 'candidato') + ->LeftJoin('candidato.programa', 'programa', 'candidato.programa_id = programa.id') + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.programa_tipo_id = programaTipo.id') + ->where('candidato.identificacion= :identificacion') + ->Andwhere('programaTipo.id= :programaTipoId') + ->setParameter('identificacion', $candidato["identificacion"]) + ->setParameter('programaTipoId', $candidato["programaAsig"]->getProgramaTipo()->getId()) + ->getQuery() + ->getOneOrNullResult(); + //die(dump($existeCandidato)); + if (is_null($existeCandidato)){ + return false; + }else{ + return true; + } + + } + + + private function asignarValoresDeBusqueda($candidato){ + foreach($candidato as $clave => $valor){ + if($clave == "codPrograma"){ + $codigoOpsuPrograma = $valor; + } + elseif($clave == "nacionalidad"){ + $documentoIdentidadTipo = $valor; + } + elseif($clave == "genero"){ + $genero = $valor; + } + elseif($clave == "estadoCivil"){ + $estadoCivil = $valor; + } + elseif($clave == "telefono"){ + $codigoArea = substr($valor, 0,3); + $telefono = substr($valor,3); + } + elseif($clave == "discapacidad"){ + $discapacidad = $valor; + } + elseif($clave == "trabaja"){ + if($valor === 'S'){ + $trabaja=true; + }else{ + $trabaja=false; + } + } + elseif($clave == "etnia"){ + $etnia = $valor; + } + elseif($clave == "periodoAsig"){ + $periodoAsignado = explode('-', $valor); + $periodo = $periodoAsignado[1].'-'.$periodoAsignado[0]; + } + + } + + return array("codPrograma"=>$codigoOpsuPrograma,"documentoIdentidadTipo"=>$documentoIdentidadTipo,"genero"=>$genero, + "estadoCivil"=>$estadoCivil,"codigoArea"=>$codigoArea,"telefono"=>$telefono, + "discapacidad"=>$discapacidad,"etnia"=>$etnia,"periodo"=>$periodo,"trabaja"=>$trabaja); + } + + private function ordenarArregloCandidato($arregloConsultas,$candidato){ + //die(dump((array("arregloConsultas"=>$arregloConsultas,"candidato"=>$candidato)))); + if(count($arregloConsultas) !== 0){ + foreach($candidato as $clave => $valor){ + if($clave == "nacionalidad"){ + $arrayTemp[$clave] = $arregloConsultas["DocumentoIdentidadTipo"]; + } + elseif($clave == "genero"){ + $arrayTemp[$clave] = $arregloConsultas["Genero"]; + } + elseif($clave == "estadoCivil"){ + $arrayTemp[$clave] = $arregloConsultas["EstadoCivil"]; + } + elseif($clave == "telefono"){ + $telefono = substr($valor,3); + $arrayTemp[$clave] = $telefono; + } + elseif($clave == "discapacidad"){ + $arrayTemp[$clave] = $arregloConsultas["Discapacidad"]; + } + elseif($clave == "etnia"){ + $arrayTemp[$clave] = $arregloConsultas["Etnia"]; + } + elseif($clave == "aldeaAsig"){ + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea(); + } + elseif($clave == "periodoAsig"){ + $arrayTemp[$clave] = $arregloConsultas["PeriodoAcademico"]; + } + elseif($clave == "programaAsig"){ + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getPrograma(); + } + elseif($clave == "codPrograma"){ + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getCodigoOpsu(); + } + elseif($clave == "estadoRes"){ + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea()->getAmbiente()->getParroquia()->getMunicipio()->getEstado(); + } + elseif($clave == "trabaja"){ + if($valor === 'S'){ + $arrayTemp[$clave]=true; + }else{ + $arrayTemp[$clave]=false; + } + }else{ + $arrayTemp[$clave] = $valor; + } + } + $arrayTemp["correoTipo"]= $arregloConsultas["CorreoTipo"]; + $arrayTemp["telefonoCodigoArea"]= $arregloConsultas["TelefonoCodigoArea"]; + $arrayTemp["aspiranteEstatus"]= $arregloConsultas["AspiranteEstatus"]; + //die(dump(array("objetos"=>$arregloConsultas,"candidato"=>$arrayTemp))); + return $arrayTemp; + }else{ + return; + } + + + } + +} \ No newline at end of file diff --git a/src/UBV/PracticaBundle/Entity/CargaAcademica.php b/src/UBV/PracticaBundle/Entity/CargaAcademica.php new file mode 100644 index 0000000..8d58442 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CargaAcademica.php @@ -0,0 +1,238 @@ +horarios = new ArrayCollection(); + $this->inscripcionDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'oferta_academica_detalle_id', 'seccion_id', 'ambiente_espacio_id', 'docente_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Add horarios + * + * @param \UBV\SurUbvBundle\Entity\Horario $horarios + * @return CargaAcademica + */ + public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) + { + $this->horarios[] = $horarios; + + return $this; + } + + /** + * Remove horarios + * + * @param \UBV\SurUbvBundle\Entity\Horario $horarios + */ + public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) + { + $this->horarios->removeElement($horarios); + } + + /** + * Get horarios + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getHorarios() + { + return $this->horarios; + } + + /** + * Add inscripcionDetalles + * + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles + * @return CargaAcademica + */ + public function addInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) + { + $this->inscripcionDetalles[] = $inscripcionDetalles; + + return $this; + } + + /** + * Remove inscripcionDetalles + * + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles + */ + public function removeInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) + { + $this->inscripcionDetalles->removeElement($inscripcionDetalles); + } + + /** + * Get inscripcionDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getInscripcionDetalles() + { + return $this->inscripcionDetalles; + } + + /** + * Set ofertaAcademicaDetalle + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle + * @return CargaAcademica + */ + public function setOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle) + { + $this->ofertaAcademicaDetalle = $ofertaAcademicaDetalle; + + return $this; + } + + /** + * Get ofertaAcademicaDetalle + * + * @return \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle + */ + public function getOfertaAcademicaDetalle() + { + return $this->ofertaAcademicaDetalle; + } + + /** + * Set seccion + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccion + * @return CargaAcademica + */ + public function setSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccion) + { + $this->seccion = $seccion; + + return $this; + } + + /** + * Get seccion + * + * @return \UBV\SurUbvBundle\Entity\Seccion + */ + public function getSeccion() + { + return $this->seccion; + } + + /** + * Set ambienteEspacio + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio + * @return CargaAcademica + */ + public function setAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio) + { + $this->ambienteEspacio = $ambienteEspacio; + + return $this; + } + + /** + * Get ambienteEspacio + * + * @return \UBV\SurUbvBundle\Entity\AmbienteEspacio + */ + public function getAmbienteEspacio() + { + return $this->ambienteEspacio; + } + + /** + * Set docente + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return CargaAcademica + */ + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get docente + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php b/src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php new file mode 100644 index 0000000..3cf3338 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php @@ -0,0 +1,15 @@ +docentes = new ArrayCollection(); + $this->programas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'area_conocimiento_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return CentroEstudio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return CentroEstudio + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + * @return CentroEstudio + */ + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes[] = $docentes; + + return $this; + } + + /** + * Remove docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + */ + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes->removeElement($docentes); + } + + /** + * Get docentes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocentes() + { + return $this->docentes; + } + + /** + * Add programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + * @return CentroEstudio + */ + public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas[] = $programas; + + return $this; + } + + /** + * Remove programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + */ + public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas->removeElement($programas); + } + + /** + * Get programas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramas() + { + return $this->programas; + } + + /** + * Set areaConocimiento + * + * @param \UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento + * @return CentroEstudio + */ + public function setAreaConocimiento(\UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento) + { + $this->areaConocimiento = $areaConocimiento; + + return $this; + } + + /** + * Get areaConocimiento + * + * @return \UBV\SurUbvBundle\Entity\AreaConocimiento + */ + public function getAreaConocimiento() + { + return $this->areaConocimiento; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php b/src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php new file mode 100644 index 0000000..01fb365 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php @@ -0,0 +1,15 @@ +domicilioPersonas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estado_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Ciudad + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + * @return Ciudad + */ + public function addDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas[] = $domicilioPersonas; + + return $this; + } + + /** + * Remove domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + */ + public function removeDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas->removeElement($domicilioPersonas); + } + + /** + * Get domicilioPersonas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDomicilioPersonas() + { + return $this->domicilioPersonas; + } + + /** + * Set estado + * + * @param \UBV\SurUbvBundle\Entity\Estado $estado + * @return Ciudad + */ + public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado) + { + $this->estado = $estado; + + return $this; + } + + /** + * Get estado + * + * @return \UBV\SurUbvBundle\Entity\Estado + */ + public function getEstado() + { + return $this->estado; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CiudadRepository.php b/src/UBV/PracticaBundle/Entity/CiudadRepository.php new file mode 100644 index 0000000..9dd3e31 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CiudadRepository.php @@ -0,0 +1,15 @@ +comitepfaIntegrantes = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return ComiteTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + * @return ComiteTipo + */ + public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; + + return $this; + } + + /** + * Remove comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + */ + public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); + } + + /** + * Get comitepfaIntegrantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getComitepfaIntegrantes() + { + return $this->comitepfaIntegrantes; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php b/src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php new file mode 100644 index 0000000..cc25c09 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set fecha_inicio + * + * @param \DateTime $fechaInicio + * @return ComitepfaIntegrante + */ + public function setFechaInicio($fechaInicio) + { + $this->fecha_inicio = $fechaInicio; + + return $this; + } + + /** + * Get fecha_inicio + * + * @return \DateTime + */ + public function getFechaInicio() + { + return $this->fecha_inicio; + } + + /** + * Set fecha_fin + * + * @param \DateTime $fechaFin + * @return ComitepfaIntegrante + */ + public function setFechaFin($fechaFin) + { + $this->fecha_fin = $fechaFin; + + return $this; + } + + /** + * Get fecha_fin + * + * @return \DateTime + */ + public function getFechaFin() + { + return $this->fecha_fin; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return ComitepfaIntegrante + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return ComitepfaIntegrante + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } + + /** + * Set docente + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return ComitepfaIntegrante + */ + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get docente + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } + + /** + * Set comiteTipo + * + * @param \UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo + * @return ComitepfaIntegrante + */ + public function setComiteTipo(\UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo) + { + $this->comiteTipo = $comiteTipo; + + return $this; + } + + /** + * Get comiteTipo + * + * @return \UBV\SurUbvBundle\Entity\ComiteTipo + */ + public function getComiteTipo() + { + return $this->comiteTipo; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php b/src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php new file mode 100644 index 0000000..619ad22 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php @@ -0,0 +1,15 @@ +malla_curricular_detalle_id = $mallaCurricularDetalleId; + + return $this; + } + + /** + * Get malla_curricular_detalle_id + * + * @return integer + */ + public function getMallaCurricularDetalleId() + { + return $this->malla_curricular_detalle_id; + } + + /** + * Set malla_curricular_detalle_id1 + * + * @param integer $mallaCurricularDetalleId1 + * @return Competencia + */ + public function setMallaCurricularDetalleId1($mallaCurricularDetalleId1) + { + $this->malla_curricular_detalle_id1 = $mallaCurricularDetalleId1; + + return $this; + } + + /** + * Get malla_curricular_detalle_id1 + * + * @return integer + */ + public function getMallaCurricularDetalleId1() + { + return $this->malla_curricular_detalle_id1; + } + + /** + * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId + * @return Competencia + */ + public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId) + { + $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId; + + return $this; + } + + /** + * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle + */ + public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId() + { + return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId; + } + + /** + * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 + * @return Competencia + */ + public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId1(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1) + { + $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; + + return $this; + } + + /** + * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle + */ + public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId1() + { + return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CompetenciaRepository.php b/src/UBV/PracticaBundle/Entity/CompetenciaRepository.php new file mode 100644 index 0000000..6fe6f8d --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CompetenciaRepository.php @@ -0,0 +1,15 @@ +candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Set id + * + * @param integer $id + * @return Convenio + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Convenio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Convenio + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ConvenioRepository.php b/src/UBV/PracticaBundle/Entity/ConvenioRepository.php new file mode 100644 index 0000000..11d694c --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ConvenioRepository.php @@ -0,0 +1,15 @@ +personaCorreos = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return CorreoTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personaCorreos + * + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos + * @return CorreoTipo + */ + public function addPersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) + { + $this->personaCorreos[] = $personaCorreos; + + return $this; + } + + /** + * Remove personaCorreos + * + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos + */ + public function removePersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) + { + $this->personaCorreos->removeElement($personaCorreos); + } + + /** + * Get personaCorreos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaCorreos() + { + return $this->personaCorreos; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return CorreoTipo + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php b/src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php new file mode 100644 index 0000000..ca80c87 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php @@ -0,0 +1,15 @@ +depositos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'tipo_cuenta_bancaria_id', 'banco_id', 'unidad_administrativa_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return CuentaBancaria + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + * @return CuentaBancaria + */ + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos[] = $depositos; + + return $this; + } + + /** + * Remove depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + */ + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos->removeElement($depositos); + } + + /** + * Get depositos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDepositos() + { + return $this->depositos; + } + + /** + * Set cuentaBancariaTipo + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo + * @return CuentaBancaria + */ + public function setCuentaBancariaTipo(\UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo) + { + $this->cuentaBancariaTipo = $cuentaBancariaTipo; + + return $this; + } + + /** + * Get cuentaBancariaTipo + * + * @return \UBV\SurUbvBundle\Entity\CuentaBancariaTipo + */ + public function getCuentaBancariaTipo() + { + return $this->cuentaBancariaTipo; + } + + /** + * Set banco + * + * @param \UBV\SurUbvBundle\Entity\Banco $banco + * @return CuentaBancaria + */ + public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) + { + $this->banco = $banco; + + return $this; + } + + /** + * Get banco + * + * @return \UBV\SurUbvBundle\Entity\Banco + */ + public function getBanco() + { + return $this->banco; + } + + /** + * Set unidadAdministrativa + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa + * @return CuentaBancaria + */ + public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa) + { + $this->unidadAdministrativa = $unidadAdministrativa; + + return $this; + } + + /** + * Get unidadAdministrativa + * + * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa + */ + public function getUnidadAdministrativa() + { + return $this->unidadAdministrativa; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php b/src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php new file mode 100644 index 0000000..a84f67a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php @@ -0,0 +1,15 @@ +cuentaBancarias = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return CuentaBancariaTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + * @return CuentaBancariaTipo + */ + public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias[] = $cuentaBancarias; + + return $this; + } + + /** + * Remove cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + */ + public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias->removeElement($cuentaBancarias); + } + + /** + * Get cuentaBancarias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCuentaBancarias() + { + return $this->cuentaBancarias; + } +} diff --git a/src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php b/src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php new file mode 100644 index 0000000..dc96d92 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php @@ -0,0 +1,15 @@ +depositoDetalles = new ArrayCollection(); + $this->arancels = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'num_deposito', 'monto', 'cuenta_bancaria_id', 'persona_id', 'fecha_deposito', 'deposito_tipo_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set num_deposito + * + * @param integer $numDeposito + * @return Deposito + */ + public function setNumDeposito($numDeposito) + { + $this->num_deposito = $numDeposito; + + return $this; + } + + /** + * Set monto + * + * @param float $monto + * @return Deposito + */ + public function setMonto($monto) + { + $this->monto = $monto; + + return $this; + } + + /** + * Get monto + * + * @return float + */ + public function getMonto() + { + return $this->monto; + } + + /** + * Set fecha_deposito + * + * @param \DateTime $fechaDeposito + * @return Deposito + */ + public function setFechaDeposito($fechaDeposito) + { + $this->fecha_deposito = $fechaDeposito; + + return $this; + } + + /** + * Get fecha_deposito + * + * @return \DateTime + */ + public function getFechaDeposito() + { + return $this->fecha_deposito; + } + + /** + * Add depositoDetalles + * + * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles + * @return Deposito + */ + public function addDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) + { + $this->depositoDetalles[] = $depositoDetalles; + + return $this; + } + + /** + * Remove depositoDetalles + * + * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles + */ + public function removeDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) + { + $this->depositoDetalles->removeElement($depositoDetalles); + } + + /** + * Get depositoDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDepositoDetalles() + { + return $this->depositoDetalles; + } + + /** + * Set cuentaBancaria + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria + * @return Deposito + */ + public function setCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria) + { + $this->cuentaBancaria = $cuentaBancaria; + + return $this; + } + + /** + * Get cuentaBancaria + * + * @return \UBV\SurUbvBundle\Entity\CuentaBancaria + */ + public function getCuentaBancaria() + { + return $this->cuentaBancaria; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return Deposito + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set depositoTipo + * + * @param \UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo + * @return Deposito + */ + public function setDepositoTipo(\UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo) + { + $this->depositoTipo = $depositoTipo; + + return $this; + } + + /** + * Get depositoTipo + * + * @return \UBV\SurUbvBundle\Entity\DepositoTipo + */ + public function getDepositoTipo() + { + return $this->depositoTipo; + } + + /** + * Add arancels + * + * @param \UBV\SurUbvBundle\Entity\Arancel $arancels + * @return Deposito + */ + public function addArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) + { + $this->arancels[] = $arancels; + + return $this; + } + + /** + * Remove arancels + * + * @param \UBV\SurUbvBundle\Entity\Arancel $arancels + */ + public function removeArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) + { + $this->arancels->removeElement($arancels); + } + + /** + * Get arancels + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getArancels() + { + return $this->arancels; + } + + /** + * Get num_deposito + * + * @return integer + */ + public function getNumDeposito() + { + return $this->num_deposito; + } + + /** + * Set arancel + * + * @param \UBV\SurUbvBundle\Entity\Arancel $arancel + * @return Deposito + */ + public function setArancel(\UBV\SurUbvBundle\Entity\Arancel $arancel) + { + $this->arancel = $arancel; + + return $this; + } + + /** + * Get arancel + * + * @return \UBV\SurUbvBundle\Entity\Arancel + */ + public function getArancel() + { + return $this->arancel; + } + +} diff --git a/src/UBV/PracticaBundle/Entity/DepositoDetalle.php b/src/UBV/PracticaBundle/Entity/DepositoDetalle.php new file mode 100644 index 0000000..cc8412b --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DepositoDetalle.php @@ -0,0 +1,127 @@ +id; + } + + /** + * Set cta_bancaria_origen + * + * @param string $ctaBancariaOrigen + * @return DepositoDetalle + */ + public function setCtaBancariaOrigen($ctaBancariaOrigen) + { + $this->cta_bancaria_origen = $ctaBancariaOrigen; + + return $this; + } + + /** + * Get cta_bancaria_origen + * + * @return string + */ + public function getCtaBancariaOrigen() + { + return $this->cta_bancaria_origen; + } + + /** + * Set banco + * + * @param \UBV\SurUbvBundle\Entity\Banco $banco + * @return DepositoDetalle + */ + public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) + { + $this->banco = $banco; + + return $this; + } + + /** + * Get banco + * + * @return \UBV\SurUbvBundle\Entity\Banco + */ + public function getBanco() + { + return $this->banco; + } + + /** + * Set deposito + * + * @param \UBV\SurUbvBundle\Entity\Deposito $deposito + * @return DepositoDetalle + */ + public function setDeposito(\UBV\SurUbvBundle\Entity\Deposito $deposito) + { + $this->deposito = $deposito; + + return $this; + } + + /** + * Get deposito + * + * @return \UBV\SurUbvBundle\Entity\Deposito + */ + public function getDeposito() + { + return $this->deposito; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php b/src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php new file mode 100644 index 0000000..f6b539c --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php @@ -0,0 +1,15 @@ +depositos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estatus'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DepositoTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return DepositoTipo + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + * @return DepositoTipo + */ + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos[] = $depositos; + + return $this; + } + + /** + * Remove depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + */ + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos->removeElement($depositos); + } + + /** + * Get depositos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDepositos() + { + return $this->depositos; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php b/src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php new file mode 100644 index 0000000..151585e --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php @@ -0,0 +1,15 @@ +horarios = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DiaSemana + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add horarios + * + * @param \UBV\SurUbvBundle\Entity\Horario $horarios + * @return DiaSemana + */ + public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) + { + $this->horarios[] = $horarios; + + return $this; + } + + /** + * Remove horarios + * + * @param \UBV\SurUbvBundle\Entity\Horario $horarios + */ + public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) + { + $this->horarios->removeElement($horarios); + } + + /** + * Get horarios + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getHorarios() + { + return $this->horarios; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php b/src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php new file mode 100644 index 0000000..3abbdb1 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php @@ -0,0 +1,15 @@ +personaDiscapacidads = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Discapacidad + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personaDiscapacidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads + * @return Discapacidad + */ + public function addPersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) + { + $this->personaDiscapacidads[] = $personaDiscapacidads; + + return $this; + } + + /** + * Remove personaDiscapacidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads + */ + public function removePersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) + { + $this->personaDiscapacidads->removeElement($personaDiscapacidads); + } + + /** + * Get personaDiscapacidads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaDiscapacidads() + { + return $this->personaDiscapacidads; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Discapacidad + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php b/src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php new file mode 100644 index 0000000..1901419 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php @@ -0,0 +1,15 @@ +cargaAcademicas = new ArrayCollection(); + $this->comitepfaIntegrantes = new ArrayCollection(); + $this->docenteAldeas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'programa_id', 'centro_estudio_id', 'persona_id', 'eje_regional_id', 'dedicacion_id', 'docente_estatus_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Add cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + * @return Docente + */ + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas[] = $cargaAcademicas; + + return $this; + } + + /** + * Remove cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + */ + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas->removeElement($cargaAcademicas); + } + + /** + * Get cargaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCargaAcademicas() + { + return $this->cargaAcademicas; + } + + /** + * Add comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + * @return Docente + */ + public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; + + return $this; + } + + /** + * Remove comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + */ + public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); + } + + /** + * Get comitepfaIntegrantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getComitepfaIntegrantes() + { + return $this->comitepfaIntegrantes; + } + + /** + * Add docenteAldeas + * + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas + * @return Docente + */ + public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) + { + $this->docenteAldeas[] = $docenteAldeas; + + return $this; + } + + /** + * Remove docenteAldeas + * + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas + */ + public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) + { + $this->docenteAldeas->removeElement($docenteAldeas); + } + + /** + * Get docenteAldeas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocenteAldeas() + { + return $this->docenteAldeas; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return Docente + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } + + /** + * Set centroEstudio + * + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio + * @return Docente + */ + public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio) + { + $this->centroEstudio = $centroEstudio; + + return $this; + } + + /** + * Get centroEstudio + * + * @return \UBV\SurUbvBundle\Entity\CentroEstudio + */ + public function getCentroEstudio() + { + return $this->centroEstudio; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return Docente + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set ejeRegional + * + * @param \UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional + * @return Docente + */ + public function setEjeRegional(\UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional) + { + $this->ejeRegional = $ejeRegional; + + return $this; + } + + /** + * Get ejeRegional + * + * @return \UBV\SurUbvBundle\Entity\EjeRegional + */ + public function getEjeRegional() + { + return $this->ejeRegional; + } + + /** + * Set docenteDedicacion + * + * @param \UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion + * @return Docente + */ + public function setDocenteDedicacion(\UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion) + { + $this->docenteDedicacion = $docenteDedicacion; + + return $this; + } + + /** + * Get docenteDedicacion + * + * @return \UBV\SurUbvBundle\Entity\DocenteDedicacion + */ + public function getDocenteDedicacion() + { + return $this->docenteDedicacion; + } + + /** + * Set docenteEstatus + * + * @param \UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus + * @return Docente + */ + public function setDocenteEstatus(\UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus) + { + $this->docenteEstatus = $docenteEstatus; + + return $this; + } + + /** + * Get docenteEstatus + * + * @return \UBV\SurUbvBundle\Entity\DocenteEstatus + */ + public function getDocenteEstatus() + { + return $this->docenteEstatus; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DocenteAldea.php b/src/UBV/PracticaBundle/Entity/DocenteAldea.php new file mode 100644 index 0000000..bca4dac --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DocenteAldea.php @@ -0,0 +1,99 @@ +id; + } + + /** + * Set docente + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return DocenteAldea + */ + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get docente + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return DocenteAldea + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php b/src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php new file mode 100644 index 0000000..f33e084 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php @@ -0,0 +1,15 @@ +docentes = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'total_horas', 'hora_docencia_minima', 'hora_docencia_maxima'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DocenteDedicacion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set total_horas + * + * @param integer $totalHoras + * @return DocenteDedicacion + */ + public function setTotalHoras($totalHoras) + { + $this->total_horas = $totalHoras; + + return $this; + } + + /** + * Get total_horas + * + * @return integer + */ + public function getTotalHoras() + { + return $this->total_horas; + } + + /** + * Set hora_docencia_minima + * + * @param integer $horaDocenciaMinima + * @return DocenteDedicacion + */ + public function setHoraDocenciaMinima($horaDocenciaMinima) + { + $this->hora_docencia_minima = $horaDocenciaMinima; + + return $this; + } + + /** + * Get hora_docencia_minima + * + * @return integer + */ + public function getHoraDocenciaMinima() + { + return $this->hora_docencia_minima; + } + + /** + * Set hora_docencia_maxima + * + * @param integer $horaDocenciaMaxima + * @return DocenteDedicacion + */ + public function setHoraDocenciaMaxima($horaDocenciaMaxima) + { + $this->hora_docencia_maxima = $horaDocenciaMaxima; + + return $this; + } + + /** + * Get hora_docencia_maxima + * + * @return integer + */ + public function getHoraDocenciaMaxima() + { + return $this->hora_docencia_maxima; + } + + /** + * Add docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + * @return DocenteDedicacion + */ + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes[] = $docentes; + + return $this; + } + + /** + * Remove docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + */ + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes->removeElement($docentes); + } + + /** + * Get docentes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocentes() + { + return $this->docentes; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php b/src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php new file mode 100644 index 0000000..ab5276f --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php @@ -0,0 +1,15 @@ +docentes = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DocenteEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + * @return DocenteEstatus + */ + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes[] = $docentes; + + return $this; + } + + /** + * Remove docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + */ + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes->removeElement($docentes); + } + + /** + * Get docentes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocentes() + { + return $this->docentes; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php b/src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php new file mode 100644 index 0000000..50a9333 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php @@ -0,0 +1,15 @@ +candidatos = new ArrayCollection(); + $this->personaNacionalidads = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DocumentoIdentidadTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + * @return DocumentoIdentidadTipo + */ + public function addPersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads[] = $personaNacionalidads; + + return $this; + } + + /** + * Remove personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + */ + public function removePersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads->removeElement($personaNacionalidads); + } + + /** + * Get personaNacionalidads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaNacionalidads() + { + return $this->personaNacionalidads; + } + + /** + * Set codigo + * + * @param string $codigo + * @return DocumentoIdentidadTipo + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + public function __toString() + { + return $this->codigo; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return DocumentoIdentidadTipo + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php b/src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php new file mode 100644 index 0000000..61b1b28 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DomicilioDetalle + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set domicilioPersona + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona + * @return DomicilioDetalle + */ + public function setDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona) + { + $this->domicilioPersona = $domicilioPersona; + + return $this; + } + + /** + * Get domicilioPersona + * + * @return \UBV\SurUbvBundle\Entity\DomicilioPersona + */ + public function getDomicilioPersona() + { + return $this->domicilioPersona; + } + + /** + * Set domicilioDetalleTipo + * + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo + * @return DomicilioDetalle + */ + public function setDomicilioDetalleTipo(\UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo) + { + $this->domicilioDetalleTipo = $domicilioDetalleTipo; + + return $this; + } + + /** + * Get domicilioDetalleTipo + * + * @return \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo + */ + public function getDomicilioDetalleTipo() + { + return $this->domicilioDetalleTipo; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DomicilioDetalleRepository.php b/src/UBV/PracticaBundle/Entity/DomicilioDetalleRepository.php new file mode 100644 index 0000000..70be03b --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DomicilioDetalleRepository.php @@ -0,0 +1,15 @@ +domicilioDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return DomicilioDetalleTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add domicilioDetalles + * + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles + * @return DomicilioDetalleTipo + */ + public function addDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) + { + $this->domicilioDetalles[] = $domicilioDetalles; + + return $this; + } + + /** + * Remove domicilioDetalles + * + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles + */ + public function removeDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) + { + $this->domicilioDetalles->removeElement($domicilioDetalles); + } + + /** + * Get domicilioDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDomicilioDetalles() + { + return $this->domicilioDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DomicilioDetalleTipoRepository.php b/src/UBV/PracticaBundle/Entity/DomicilioDetalleTipoRepository.php new file mode 100644 index 0000000..fc4f7e8 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DomicilioDetalleTipoRepository.php @@ -0,0 +1,15 @@ +domicilioDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'ciudad_id', 'parroquia_id', 'persona_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Add domicilioDetalles + * + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles + * @return DomicilioPersona + */ + public function addDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) + { + $this->domicilioDetalles[] = $domicilioDetalles; + + return $this; + } + + /** + * Remove domicilioDetalles + * + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles + */ + public function removeDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) + { + $this->domicilioDetalles->removeElement($domicilioDetalles); + } + + /** + * Get domicilioDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDomicilioDetalles() + { + return $this->domicilioDetalles; + } + + /** + * Set ciudad + * + * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudad + * @return DomicilioPersona + */ + public function setCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudad) + { + $this->ciudad = $ciudad; + + return $this; + } + + /** + * Get ciudad + * + * @return \UBV\SurUbvBundle\Entity\Ciudad + */ + public function getCiudad() + { + return $this->ciudad; + } + + /** + * Set parroquia + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia + * @return DomicilioPersona + */ + public function setParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquia) + { + $this->parroquia = $parroquia; + + return $this; + } + + /** + * Get parroquia + * + * @return \UBV\SurUbvBundle\Entity\Parroquia + */ + public function getParroquia() + { + return $this->parroquia; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return DomicilioPersona + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } +} diff --git a/src/UBV/PracticaBundle/Entity/DomicilioPersonaRepository.php b/src/UBV/PracticaBundle/Entity/DomicilioPersonaRepository.php new file mode 100644 index 0000000..20b27e7 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/DomicilioPersonaRepository.php @@ -0,0 +1,15 @@ +unidadCurricularDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return EjeFormacion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + * @return EjeFormacion + */ + public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; + + return $this; + } + + /** + * Remove unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + */ + public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); + } + + /** + * Get unidadCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadCurricularDetalles() + { + return $this->unidadCurricularDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EjeFormacionRepository.php b/src/UBV/PracticaBundle/Entity/EjeFormacionRepository.php new file mode 100644 index 0000000..e938a3a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EjeFormacionRepository.php @@ -0,0 +1,15 @@ +parroquias = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'eje_regional_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return EjeMunicipal + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return EjeMunicipal + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add parroquias + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias + * @return EjeMunicipal + */ + public function addParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) + { + $this->parroquias[] = $parroquias; + + return $this; + } + + /** + * Remove parroquias + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias + */ + public function removeParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) + { + $this->parroquias->removeElement($parroquias); + } + + /** + * Get parroquias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getParroquias() + { + return $this->parroquias; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Set ejeRegional + * + * @param \UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional + * @return EjeMunicipal + */ + public function setEjeRegional(\UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional) + { + $this->ejeRegional = $ejeRegional; + + return $this; + } + + /** + * Get ejeRegional + * + * @return \UBV\SurUbvBundle\Entity\EjeRegional + */ + public function getEjeRegional() + { + return $this->ejeRegional; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EjeMunicipalRepository.php b/src/UBV/PracticaBundle/Entity/EjeMunicipalRepository.php new file mode 100644 index 0000000..75b209d --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EjeMunicipalRepository.php @@ -0,0 +1,33 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('ejemunicipal') + ->from('UBVSurUbvBundle:EjeMunicipal', 'ejemunicipal') + ->Join('ejemunicipal.ejeregional', 'ejeregional', 'ejeregional.id = ejemunicipal.ejeregional_id') + ->where('ejeregional.id = :ejeregional_id') + ->setParameter('ejeregional_id',$ejeregional_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EjeRegional.php b/src/UBV/PracticaBundle/Entity/EjeRegional.php new file mode 100644 index 0000000..b5a88b6 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EjeRegional.php @@ -0,0 +1,171 @@ +docentes = new ArrayCollection(); + $this->ejeMunicipals = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return EjeRegional + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return EjeRegional + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set docente + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return EjeRegional + */ + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente = null) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get docente + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } + + /** + * Add ejeMunicipals + * + * @param \UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals + * @return EjeRegional + */ + public function addEjeMunicipal(\UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals) + { + $this->ejeMunicipals[] = $ejeMunicipals; + + return $this; + } + + /** + * Remove ejeMunicipals + * + * @param \UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals + */ + public function removeEjeMunicipal(\UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals) + { + $this->ejeMunicipals->removeElement($ejeMunicipals); + } + + /** + * Get ejeMunicipals + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEjeMunicipals() + { + return $this->ejeMunicipals; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/EjeRegionalRepository.php b/src/UBV/PracticaBundle/Entity/EjeRegionalRepository.php new file mode 100644 index 0000000..72e9cfc --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EjeRegionalRepository.php @@ -0,0 +1,15 @@ +ciudads = new ArrayCollection(); + $this->municipios = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'pais_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Estado + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Estado + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add ciudads + * + * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudads + * @return Estado + */ + public function addCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudads) + { + $this->ciudads[] = $ciudads; + + return $this; + } + + /** + * Remove ciudads + * + * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudads + */ + public function removeCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudads) + { + $this->ciudads->removeElement($ciudads); + } + + /** + * Get ciudads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCiudads() + { + return $this->ciudads; + } + + /** + * Add municipios + * + * @param \UBV\SurUbvBundle\Entity\Municipio $municipios + * @return Estado + */ + public function addMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipios) + { + $this->municipios[] = $municipios; + + return $this; + } + + /** + * Remove municipios + * + * @param \UBV\SurUbvBundle\Entity\Municipio $municipios + */ + public function removeMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipios) + { + $this->municipios->removeElement($municipios); + } + + /** + * Get municipios + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMunicipios() + { + return $this->municipios; + } + + /** + * Set pais + * + * @param \UBV\SurUbvBundle\Entity\Pais $pais + * @return Estado + */ + public function setPais(\UBV\SurUbvBundle\Entity\Pais $pais) + { + $this->pais = $pais; + + return $this; + } + + /** + * Get pais + * + * @return \UBV\SurUbvBundle\Entity\Pais + */ + public function getPais() + { + return $this->pais; + } + + public function __toString(){ + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Estado + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstadoCivil.php b/src/UBV/PracticaBundle/Entity/EstadoCivil.php new file mode 100644 index 0000000..1096da1 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstadoCivil.php @@ -0,0 +1,189 @@ +personas = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return EstadoCivil + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + * @return EstadoCivil + */ + public function addPersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas[] = $personas; + + return $this; + } + + /** + * Remove personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + */ + public function removePersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas->removeElement($personas); + } + + /** + * Get personas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonas() + { + return $this->personas; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Set codigo + * + * @param string $codigo + * @return EstadoCivil + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return EstadoCivil + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstadoCivilRepository.php b/src/UBV/PracticaBundle/Entity/EstadoCivilRepository.php new file mode 100644 index 0000000..61c4157 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstadoCivilRepository.php @@ -0,0 +1,15 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('estado') + ->from('UBVSurUbvBundle:Estado', 'estado') + ->Join('estado.pais', 'pais', 'pais.id = estado.pais_id') + ->where('pais.id = :pais_id') + ->setParameter('pais_id',$pais_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/Estudiante.php b/src/UBV/PracticaBundle/Entity/Estudiante.php new file mode 100644 index 0000000..88460a9 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Estudiante.php @@ -0,0 +1,208 @@ +estudianteDetalles = new ArrayCollection(); + $this->inscripcions = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'estatus', 'persona_id', 'aspirante_tipo_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return Estudiante + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + * @return Estudiante + */ + public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles[] = $estudianteDetalles; + + return $this; + } + + /** + * Remove estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + */ + public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles->removeElement($estudianteDetalles); + } + + /** + * Get estudianteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDetalles() + { + return $this->estudianteDetalles; + } + + /** + * Add inscripcions + * + * @param \UBV\SurUbvBundle\Entity\Inscripcion $inscripcions + * @return Estudiante + */ + public function addInscripcion(\UBV\SurUbvBundle\Entity\Inscripcion $inscripcions) + { + $this->inscripcions[] = $inscripcions; + + return $this; + } + + /** + * Remove inscripcions + * + * @param \UBV\SurUbvBundle\Entity\Inscripcion $inscripcions + */ + public function removeInscripcion(\UBV\SurUbvBundle\Entity\Inscripcion $inscripcions) + { + $this->inscripcions->removeElement($inscripcions); + } + + /** + * Get inscripcions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getInscripcions() + { + return $this->inscripcions; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return Estudiante + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set aspiranteTipo + * + * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo + * @return Estudiante + */ + public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) + { + $this->aspiranteTipo = $aspiranteTipo; + + return $this; + } + + /** + * Get aspiranteTipo + * + * @return \UBV\SurUbvBundle\Entity\AspiranteTipo + */ + public function getAspiranteTipo() + { + return $this->aspiranteTipo; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstudianteDetalle.php b/src/UBV/PracticaBundle/Entity/EstudianteDetalle.php new file mode 100644 index 0000000..c7b9e21 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstudianteDetalle.php @@ -0,0 +1,282 @@ +expedienteDocumentos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'estatus', 'fecha_ingreso', 'numero_expediente', 'estudiante_id', 'periodo_academico_id', 'aldea_malla_curricula_id', 'turno_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set estatus + * + * @param string $estatus + * @return EstudianteDetalle + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return string + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set fecha_ingreso + * + * @param \DateTime $fechaIngreso + * @return EstudianteDetalle + */ + public function setFechaIngreso($fechaIngreso) + { + $this->fecha_ingreso = $fechaIngreso; + + return $this; + } + + /** + * Get fecha_ingreso + * + * @return \DateTime + */ + public function getFechaIngreso() + { + return $this->fecha_ingreso; + } + + /** + * Set numero_expediente + * + * @param string $numeroExpediente + * @return EstudianteDetalle + */ + public function setNumeroExpediente($numeroExpediente) + { + $this->numero_expediente = $numeroExpediente; + + return $this; + } + + /** + * Get numero_expediente + * + * @return string + */ + public function getNumeroExpediente() + { + return $this->numero_expediente; + } + + /** + * Add expedienteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos + * @return EstudianteDetalle + */ + public function addExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) + { + $this->expedienteDocumentos[] = $expedienteDocumentos; + + return $this; + } + + /** + * Remove expedienteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos + */ + public function removeExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) + { + $this->expedienteDocumentos->removeElement($expedienteDocumentos); + } + + /** + * Get expedienteDocumentos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getExpedienteDocumentos() + { + return $this->expedienteDocumentos; + } + + /** + * Set estudiante + * + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiante + * @return EstudianteDetalle + */ + public function setEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiante) + { + $this->estudiante = $estudiante; + + return $this; + } + + /** + * Get estudiante + * + * @return \UBV\SurUbvBundle\Entity\Estudiante + */ + public function getEstudiante() + { + return $this->estudiante; + } + + /** + * Set periodoAcademico + * + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico + * @return EstudianteDetalle + */ + public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) + { + $this->periodoAcademico = $periodoAcademico; + + return $this; + } + + /** + * Get periodoAcademico + * + * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico + */ + public function getPeriodoAcademico() + { + return $this->periodoAcademico; + } + + /** + * Set aldeaMallaCurricula + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula + * @return EstudianteDetalle + */ + public function setAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula) + { + $this->aldeaMallaCurricula = $aldeaMallaCurricula; + + return $this; + } + + /** + * Get aldeaMallaCurricula + * + * @return \UBV\SurUbvBundle\Entity\AldeaMallaCurricula + */ + public function getAldeaMallaCurricula() + { + return $this->aldeaMallaCurricula; + } + + /** + * Set turno + * + * @param \UBV\SurUbvBundle\Entity\Turno $turno + * @return EstudianteDetalle + */ + public function setTurno(\UBV\SurUbvBundle\Entity\Turno $turno) + { + $this->turno = $turno; + + return $this; + } + + /** + * Get turno + * + * @return \UBV\SurUbvBundle\Entity\Turno + */ + public function getTurno() + { + return $this->turno; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstudianteDetalleRepository.php b/src/UBV/PracticaBundle/Entity/EstudianteDetalleRepository.php new file mode 100644 index 0000000..8be03a0 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstudianteDetalleRepository.php @@ -0,0 +1,15 @@ +expedienteDocumentos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'ruta_documento', 'requisito_inscripcion_id', 'persona_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set ruta_documento + * + * @param string $rutaDocumento + * @return EstudianteDocumento + */ + public function setRutaDocumento($rutaDocumento) + { + $this->ruta_documento = $rutaDocumento; + + return $this; + } + + /** + * Get ruta_documento + * + * @return string + */ + public function getRutaDocumento() + { + return $this->ruta_documento; + } + + /** + * Add expedienteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos + * @return EstudianteDocumento + */ + public function addExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) + { + $this->expedienteDocumentos[] = $expedienteDocumentos; + + return $this; + } + + /** + * Remove expedienteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos + */ + public function removeExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) + { + $this->expedienteDocumentos->removeElement($expedienteDocumentos); + } + + /** + * Get expedienteDocumentos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getExpedienteDocumentos() + { + return $this->expedienteDocumentos; + } + + /** + * Set requisitoInscripcion + * + * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcion + * @return EstudianteDocumento + */ + public function setRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcion) + { + $this->requisitoInscripcion = $requisitoInscripcion; + + return $this; + } + + /** + * Get requisitoInscripcion + * + * @return \UBV\SurUbvBundle\Entity\RequisitoInscripcion + */ + public function getRequisitoInscripcion() + { + return $this->requisitoInscripcion; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return EstudianteDocumento + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Sets file. + * + * @param UploadedFile $file + */ + public function setFile(UploadedFile $file = null) { + $this->file = $file; + + // check if we have an old image path + if (isset($this->ruta_documento)) { + // store the old name to delete after the update + $this->temp = $this->ruta_documento; + $this->ruta_documento = null; + } else { + $this->ruta_documento = 'initial'; + } + } + + /** + * Get file. + * + * @return UploadedFile + */ + public function getFile() { + return $this->file; + } + + public function getAbsolutePath() { + return null === $this->ruta_documento ? null : $this->getUploadRootDir() . '/' . $this->ruta_documento; + } + + public function getWebPath() { + return null === $this->ruta_documento ? null : $this->getUploadDir() . '/' . $this->ruta_documento; + } + + protected function getUploadRootDir() { + // la ruta absoluta del directorio donde se deben + // guardar los archivos cargados + return __DIR__ . '/../../../../web/' . $this->getUploadDir(); + } + + protected function getUploadDir() { + // se deshace del __DIR__ para no meter la pata + // al mostrar el documento/imagen cargada en la vista. + + return 'uploads/Documentos/'.$persona = $this->getPersona()->getId().'/Estudiante'; + } + + /** + * @ORM\PrePersist() + * @ORM\PreUpdate() + */ + public function preUpload() { + if (null !== $this->getFile()) { + + // haz lo que quieras para generar un nombre único + //$filename = sha1(uniqid(mt_rand(), true)); + + if($this->getRequisitoInscripcion() === "Propuesta de Investigación"){ + $filename = $this->getFile()->getClientOriginalName(); + }else{ + $filename = $this->getRequisitoInscripcion(); + } + + //$filename = md5(uniqid()); + + $existe = file_exists($this->getUploadDir() . "/" . $filename . "." . $this->getFile()->guessExtension()); + + + if ($existe == true) { + //die("esxiste"); + $this->ruta_documento = $filename . '_' . sha1(uniqid(mt_rand(), true)) . '.' . $this->getFile()->guessExtension(); + } else { + $this->ruta_documento = $filename . '.' . $this->getFile()->guessExtension(); + } + } + } + + /** + * @ORM\PostPersist() + * @ORM\PostUpdate() + */ + public function upload() { + // the file property can be empty if the field is not required + if (null === $this->getFile()) { + return; + } + + // si hay un error al mover el archivo, move() automáticamente + // envía una excepción. This will properly prevent + // the entity from being persisted to the database on error + $this->getFile()->move($this->getUploadRootDir(), $this->ruta_documento); + + // check if we have an old image + if (isset($this->temp)) { + // delete the old image + unlink($this->getUploadRootDir() . '/' . $this->temp); + // clear the temp image path + $this->temp = null; + } + $this->file = null; + } + + /** + * @ORM\PostRemove() + */ + public function removeUpload() { + if ($file = $this->getAbsolutePath()) { + unlink($file); + } + } + + + /** + * Set estatus + * + * @param boolean $estatus + * @return EstudianteDocumento + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstudianteDocumentoRepository.php b/src/UBV/PracticaBundle/Entity/EstudianteDocumentoRepository.php new file mode 100644 index 0000000..a34485f --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstudianteDocumentoRepository.php @@ -0,0 +1,146 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('documentos') + ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') + ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') + //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') + ->where('persona.id = :personaId') + //->Andwhere('tipoPrograma.id = :tipoPrograma') + //->setParameter('tipoPrograma', $programaTipo) + ->setParameter('personaId', $personaId) + ->getQuery()->getResult(Query::HYDRATE_ARRAY); + + //die(var_dump($dql)); + return $dql; + } + + public function findDocumentosByAspiranteId($aspiranteId) { + + //die("estoy en la funcion"); + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona as Persona', + 'nacionalidad as Nacionalaidad ', + 'nacionalidadPersona as NacionalaidadPersona', + 'documentoIdentidad as Documentoidentidad', + 'genero as Genero', + 'estadoCivil as estadoCivilPersona', + 'telefonos as PersonaTelefonos','telefonoCodigoArea','telefonoTipo', + 'correos','correoTipo', + 'aspirantes', 'aspiranteEstatus','aspiranteTipo', + 'programa','programaTipo','programaNivel','aldea','aldeaTipo','programaRequisito','documentos','requisitos', + 'groups') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('persona.genero', 'genero', 'persona.id = genero.persona_id') + ->Join('persona.estadoCivil', 'estadoCivil', 'persona.id = estadoCivil.persona_id') + ->Join('persona.groups', 'groups', 'persona.id = groups.persona_id') + ->LeftJoin('persona.personaCorreos', 'correos', 'persona.id = correos.persona_id') + ->LeftJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') + ->LeftJoin('documentos.requisitoInscripcion', 'requisitos', 'documentos.requisito_inscripcion_id = requisitos.id') + ->LeftJoin('persona.aspirantes', 'aspirantes', 'persona.id = aspirantes.persona_id') + ->LeftJoin('aspirantes.programa', 'programa', 'aspirantes.id = programa.aspirante_id') + ->LeftJoin('programa.requisitoInscripcions', 'programaRequisito', 'programa.id = programaRequisito.programa_id') + ->LeftJoin('aspirantes.aspiranteEstatus', 'aspiranteEstatus', 'aspirantes.id = aspiranteEstatus.aspirante_id') + ->LeftJoin('aspirantes.aspiranteTipo', 'aspiranteTipo', 'aspirantes.id = aspiranteTipo.aspirante_id') + ->LeftJoin('aspirantes.aldea', 'aldea', 'aspirantes.id = aldea.aspirante_id') + ->LeftJoin('aldea.aldeaTipo', 'aldeaTipo', 'aldea.id = aldeaTipo.aldea_id') + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.id = programaTipo.programa_id') + ->LeftJoin('programaTipo.programaNivel', 'programaNivel', 'programaTipo.id = programanivel.programa_id') + ->leftJoin('persona.personaTelefonos', 'telefonos', 'persona.id = telefonos.persona_id') + ->LeftJoin('correos.correoTipo', 'correoTipo', 'correoTipo.id = correo.correo_tipo_id') + ->LeftJoin('telefonos.telefonoCodigoArea', 'telefonoCodigoArea', 'telefonoCodigoArea.id = telefono.telefono_codigo_area_id') + ->LeftJoin('telefonoCodigoArea.telefonoTipo', 'telefonoTipo', 'telefonoCodigoArea.id = telefonoTipo.telefono_codigo_area_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('nacionalidad.nacionalidad', 'nacionalidadPersona', 'nacionalidad.nacionalidad_id = nacionalidadPersona.id') + ->where('aspirantes.id = :aspiranteId') + ->Andwhere('nacionalidad.estatus = :estatusNacionalidad') + ->setParameter('aspiranteId', $aspiranteId) + ->setParameter('estatusNacionalidad', true) + + ->getQuery() + ->getSingleResult(Query::HYDRATE_ARRAY); + +// $dql = $result->select('documentos','persona','aspirante') +// ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') +// ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') +// ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') +// ->Join('documentos.requisitoInscripcion', 'requisito', 'documentos.requisito_inscripcion_id = requisito.id') +// ->Join('requisito.programas', 'requisitoPrograma', 'requisito.id = requisitoPrograma.requisito_inscripcion_id') +// //->Join('requisito.programas', 'requisitoPrograma', 'requisito.id = requisitoPrograma.requisito_inscripcion_id') +// //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') +// ->where('aspirante.id = :aspiranteId') +// ->Andwhere('requisitoPrograma.id = aspirante.programa') +// //->setParameter('tipoPrograma', $programaTipo) +// ->setParameter('aspiranteId', $aspiranteId) +// ->orderBy('documentos.id','ASC') +// ->getQuery()->getResult(Query::HYDRATE_ARRAY); + + //die(dump($dql)); + return $dql; + +// $dql = $result->select('documentos.id as id, documentos.ruta_documento as ruta_documento, documentos.estatus as estatus', +// 'persona.primer_nombre as primer_nombre, persona.segundo_nombre as segundo_nombre, persona.primer_apellido as primer_apellido, persona.segundo_apellido as segundo_apellido') +// ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') +// ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') +// ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') +// //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') +// ->where('aspirante.id = :aspiranteId') +// //->Andwhere('tipoPrograma.id = :tipoPrograma') +// //->setParameter('tipoPrograma', $programaTipo) +// ->setParameter('aspiranteId', $aspiranteId) +// ->orderBy('documentos.id','ASC') +// ->getQuery()->getResult(Query::HYDRATE_ARRAY); +//// +//// //die(dump($dql)); +// return $dql; + } + + public function findDocumentosAndAspiranteIdById($documentoId) { + + //die("estoy en la funcion"); + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('documentos as ObjetoDocumento', + 'persona.primer_nombre as primer_nombre, persona.segundo_nombre as segundo_nombre, persona.primer_apellido as primer_apellido, persona.segundo_apellido as segundo_apellido', + 'aspirante.id as AspiranteId') + ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') + ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') + ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') + //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') + ->where('documentos.id = :documentoId') + //->Andwhere('tipoPrograma.id = :tipoPrograma') + //->setParameter('tipoPrograma', $programaTipo) + ->setParameter('documentoId', $documentoId) + ->orderBy('documentos.id','ASC') + ->getQuery()->getResult(); + + //die(dump($dql)); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EstudianteRepository.php b/src/UBV/PracticaBundle/Entity/EstudianteRepository.php new file mode 100644 index 0000000..9101c0f --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EstudianteRepository.php @@ -0,0 +1,15 @@ +personaEtnias = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Etnia + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personaEtnias + * + * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias + * @return Etnia + */ + public function addPersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) + { + $this->personaEtnias[] = $personaEtnias; + + return $this; + } + + /** + * Remove personaEtnias + * + * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias + */ + public function removePersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) + { + $this->personaEtnias->removeElement($personaEtnias); + } + + /** + * Get personaEtnias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaEtnias() + { + return $this->personaEtnias; + } + + public function __toString() + { + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Etnia + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/EtniaRepository.php b/src/UBV/PracticaBundle/Entity/EtniaRepository.php new file mode 100644 index 0000000..5adafd8 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EtniaRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set estudianteDocumento + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumento + * @return ExpedienteDocumento + */ + public function setEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumento) + { + $this->estudianteDocumento = $estudianteDocumento; + + return $this; + } + + /** + * Get estudianteDocumento + * + * @return \UBV\SurUbvBundle\Entity\EstudianteDocumento + */ + public function getEstudianteDocumento() + { + return $this->estudianteDocumento; + } + + /** + * Set estudianteDetalle + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalle + * @return ExpedienteDocumento + */ + public function setEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalle) + { + $this->estudianteDetalle = $estudianteDetalle; + + return $this; + } + + /** + * Get estudianteDetalle + * + * @return \UBV\SurUbvBundle\Entity\EstudianteDetalle + */ + public function getEstudianteDetalle() + { + return $this->estudianteDetalle; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ExpedienteDocumentoRepository.php b/src/UBV/PracticaBundle/Entity/ExpedienteDocumentoRepository.php new file mode 100644 index 0000000..aaa4a62 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ExpedienteDocumentoRepository.php @@ -0,0 +1,15 @@ +unidadCurricularDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Frecuencia + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + * @return Frecuencia + */ + public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; + + return $this; + } + + /** + * Remove unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + */ + public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); + } + + /** + * Get unidadCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadCurricularDetalles() + { + return $this->unidadCurricularDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/FrecuenciaRepository.php b/src/UBV/PracticaBundle/Entity/FrecuenciaRepository.php new file mode 100644 index 0000000..3b59b3a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/FrecuenciaRepository.php @@ -0,0 +1,15 @@ +personas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Genero + */ + public function setDescripcion($descripcion) + { + $this->descripcion = strtoupper($descripcion); + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + * @return Genero + */ + public function addPersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas[] = $personas; + + return $this; + } + + /** + * Remove personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + */ + public function removePersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas->removeElement($personas); + } + + /** + * Get personas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonas() + { + return $this->personas; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Set codigo + * + * @param string $codigo + * @return Genero + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Genero + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/GeneroRepository.php b/src/UBV/PracticaBundle/Entity/GeneroRepository.php new file mode 100644 index 0000000..9f84023 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/GeneroRepository.php @@ -0,0 +1,15 @@ +aspirantes = new ArrayCollection(); + $this->requisitoGrados = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'nivel_academico_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return GradoAcademico + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return GradoAcademico + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + /** + * Add requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + * @return GradoAcademico + */ + public function addRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados[] = $requisitoGrados; + + return $this; + } + + /** + * Remove requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + */ + public function removeRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados->removeElement($requisitoGrados); + } + + /** + * Get requisitoGrados + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoGrados() + { + return $this->requisitoGrados; + } + + /** + * Set nivelAcademico + * + * @param \UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico + * @return GradoAcademico + */ + public function setNivelAcademico(\UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico) + { + $this->nivelAcademico = $nivelAcademico; + + return $this; + } + + /** + * Get nivelAcademico + * + * @return \UBV\SurUbvBundle\Entity\NivelAcademico + */ + public function getNivelAcademico() + { + return $this->nivelAcademico; + } + + public function __toString(){ + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/Grupo.php b/src/UBV/PracticaBundle/Entity/Grupo.php new file mode 100644 index 0000000..4144bea --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Grupo.php @@ -0,0 +1,40 @@ +id; + } + + public function __toString() + { + return $this->name; + } +} diff --git a/src/UBV/PracticaBundle/Entity/GrupoRepository.php b/src/UBV/PracticaBundle/Entity/GrupoRepository.php new file mode 100644 index 0000000..73d43df --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/GrupoRepository.php @@ -0,0 +1,30 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('grupo') + ->from('UBVSurUbvBundle:Grupo', 'grupo') + ->where('grupo.name = :descripcionGrupo') + ->setParameter('descripcionGrupo', $descripcionGrupo) + ->getQuery() + ->getOneOrNullResult(); + + //die(var_dump($dql)); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/Horario.php b/src/UBV/PracticaBundle/Entity/Horario.php new file mode 100644 index 0000000..d22d9e2 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Horario.php @@ -0,0 +1,155 @@ +id; + } + + /** + * Set bloque_inicio + * + * @param string $bloqueInicio + * @return Horario + */ + public function setBloqueInicio($bloqueInicio) + { + $this->bloque_inicio = $bloqueInicio; + + return $this; + } + + /** + * Get bloque_inicio + * + * @return string + */ + public function getBloqueInicio() + { + return $this->bloque_inicio; + } + + /** + * Set bloque_fin + * + * @param string $bloqueFin + * @return Horario + */ + public function setBloqueFin($bloqueFin) + { + $this->bloque_fin = $bloqueFin; + + return $this; + } + + /** + * Get bloque_fin + * + * @return string + */ + public function getBloqueFin() + { + return $this->bloque_fin; + } + + /** + * Set diaSemana + * + * @param \UBV\SurUbvBundle\Entity\DiaSemana $diaSemana + * @return Horario + */ + public function setDiaSemana(\UBV\SurUbvBundle\Entity\DiaSemana $diaSemana) + { + $this->diaSemana = $diaSemana; + + return $this; + } + + /** + * Get diaSemana + * + * @return \UBV\SurUbvBundle\Entity\DiaSemana + */ + public function getDiaSemana() + { + return $this->diaSemana; + } + + /** + * Set cargaAcademica + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademica + * @return Horario + */ + public function setCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademica) + { + $this->cargaAcademica = $cargaAcademica; + + return $this; + } + + /** + * Get cargaAcademica + * + * @return \UBV\SurUbvBundle\Entity\CargaAcademica + */ + public function getCargaAcademica() + { + return $this->cargaAcademica; + } +} diff --git a/src/UBV/PracticaBundle/Entity/HorarioRepository.php b/src/UBV/PracticaBundle/Entity/HorarioRepository.php new file mode 100644 index 0000000..a15ae8d --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/HorarioRepository.php @@ -0,0 +1,15 @@ +inscripcionDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'estudiante_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Add inscripcionDetalles + * + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles + * @return Inscripcion + */ + public function addInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) + { + $this->inscripcionDetalles[] = $inscripcionDetalles; + + return $this; + } + + /** + * Remove inscripcionDetalles + * + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles + */ + public function removeInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) + { + $this->inscripcionDetalles->removeElement($inscripcionDetalles); + } + + /** + * Get inscripcionDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getInscripcionDetalles() + { + return $this->inscripcionDetalles; + } + + /** + * Set estudiante + * + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiante + * @return Inscripcion + */ + public function setEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiante) + { + $this->estudiante = $estudiante; + + return $this; + } + + /** + * Get estudiante + * + * @return \UBV\SurUbvBundle\Entity\Estudiante + */ + public function getEstudiante() + { + return $this->estudiante; + } +} diff --git a/src/UBV/PracticaBundle/Entity/InscripcionDetalle.php b/src/UBV/PracticaBundle/Entity/InscripcionDetalle.php new file mode 100644 index 0000000..4bf3f87 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/InscripcionDetalle.php @@ -0,0 +1,183 @@ +id; + } + + /** + * Set codigo + * + * @param string $codigo + * @return InscripcionDetalle + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set estatus + * + * @param string $estatus + * @return InscripcionDetalle + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return string + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set fecha_ingreso + * + * @param \DateTime $fechaIngreso + * @return InscripcionDetalle + */ + public function setFechaIngreso($fechaIngreso) + { + $this->fecha_ingreso = $fechaIngreso; + + return $this; + } + + /** + * Get fecha_ingreso + * + * @return \DateTime + */ + public function getFechaIngreso() + { + return $this->fecha_ingreso; + } + + /** + * Set inscripcion + * + * @param \UBV\SurUbvBundle\Entity\Inscripcion $inscripcion + * @return InscripcionDetalle + */ + public function setInscripcion(\UBV\SurUbvBundle\Entity\Inscripcion $inscripcion) + { + $this->inscripcion = $inscripcion; + + return $this; + } + + /** + * Get inscripcion + * + * @return \UBV\SurUbvBundle\Entity\Inscripcion + */ + public function getInscripcion() + { + return $this->inscripcion; + } + + /** + * Set cargaAcademica + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademica + * @return InscripcionDetalle + */ + public function setCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademica) + { + $this->cargaAcademica = $cargaAcademica; + + return $this; + } + + /** + * Get cargaAcademica + * + * @return \UBV\SurUbvBundle\Entity\CargaAcademica + */ + public function getCargaAcademica() + { + return $this->cargaAcademica; + } +} diff --git a/src/UBV/PracticaBundle/Entity/InscripcionDetalleRepository.php b/src/UBV/PracticaBundle/Entity/InscripcionDetalleRepository.php new file mode 100644 index 0000000..27e33de --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/InscripcionDetalleRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return LineaInvestigacion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return LineaInvestigacion + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set especificacion + * + * @param string $especificacion + * @return LineaInvestigacion + */ + public function setEspecificacion($especificacion) + { + $this->especificacion = $especificacion; + + return $this; + } + + /** + * Get especificacion + * + * @return string + */ + public function getEspecificacion() + { + return $this->especificacion; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return LineaInvestigacion + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } +} diff --git a/src/UBV/PracticaBundle/Entity/LineaInvestigacionRepository.php b/src/UBV/PracticaBundle/Entity/LineaInvestigacionRepository.php new file mode 100644 index 0000000..d415aba --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/LineaInvestigacionRepository.php @@ -0,0 +1,15 @@ +aldeaMallaCurriculas = new ArrayCollection(); + $this->mallaCurricularDetalles = new ArrayCollection(); + $this->requisitoGrados = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'salida_intermedia', 'malla_modalidad_id', 'programa_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return MallaCurricular + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return MallaCurricular + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Set salida_intermedia + * + * @param boolean $salidaIntermedia + * @return MallaCurricular + */ + public function setSalidaIntermedia($salidaIntermedia) + { + $this->salida_intermedia = $salidaIntermedia; + + return $this; + } + + /** + * Get salida_intermedia + * + * @return boolean + */ + public function getSalidaIntermedia() + { + return $this->salida_intermedia; + } + + /** + * Add aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + * @return MallaCurricular + */ + public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas; + + return $this; + } + + /** + * Remove aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + */ + public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas); + } + + /** + * Get aldeaMallaCurriculas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaMallaCurriculas() + { + return $this->aldeaMallaCurriculas; + } + + /** + * Add mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + * @return MallaCurricular + */ + public function addMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles[] = $mallaCurricularDetalles; + + return $this; + } + + /** + * Remove mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + */ + public function removeMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles->removeElement($mallaCurricularDetalles); + } + + /** + * Get mallaCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurricularDetalles() + { + return $this->mallaCurricularDetalles; + } + + /** + * Add requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + * @return MallaCurricular + */ + public function addRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados[] = $requisitoGrados; + + return $this; + } + + /** + * Remove requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + */ + public function removeRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados->removeElement($requisitoGrados); + } + + /** + * Get requisitoGrados + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoGrados() + { + return $this->requisitoGrados; + } + + /** + * Set modalidadMalla + * + * @param \UBV\SurUbvBundle\Entity\ModalidadMalla $modalidadMalla + * @return MallaCurricular + */ + public function setModalidadMalla(\UBV\SurUbvBundle\Entity\ModalidadMalla $modalidadMalla) + { + $this->modalidadMalla = $modalidadMalla; + + return $this; + } + + /** + * Get modalidadMalla + * + * @return \UBV\SurUbvBundle\Entity\ModalidadMalla + */ + public function getModalidadMalla() + { + return $this->modalidadMalla; + } + + /** + * Set programa + * + * @param \UBV\SurUbvBundle\Entity\Programa $programa + * @return MallaCurricular + */ + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) + { + $this->programa = $programa; + + return $this; + } + + /** + * Get programa + * + * @return \UBV\SurUbvBundle\Entity\Programa + */ + public function getPrograma() + { + return $this->programa; + } +} diff --git a/src/UBV/PracticaBundle/Entity/MallaCurricularDetalle.php b/src/UBV/PracticaBundle/Entity/MallaCurricularDetalle.php new file mode 100644 index 0000000..cb28621 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/MallaCurricularDetalle.php @@ -0,0 +1,306 @@ +competenciaRelatedByMallaCurricularDetalleIds = new ArrayCollection(); + $this->competenciaRelatedByMallaCurricularDetalleId1s = new ArrayCollection(); + $this->ofertaAcademicaDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'cantidad_tramo', 'tramo_id', 'malla_curricular_id', 'trayecto_id', 'unidad_curricular_detalle_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set cantidad_tramo + * + * @param integer $cantidadTramo + * @return MallaCurricularDetalle + */ + public function setCantidadTramo($cantidadTramo) + { + $this->cantidad_tramo = $cantidadTramo; + + return $this; + } + + /** + * Get cantidad_tramo + * + * @return integer + */ + public function getCantidadTramo() + { + return $this->cantidad_tramo; + } + + /** + * Add competenciaRelatedByMallaCurricularDetalleIds + * + * @param \UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleIds + * @return MallaCurricularDetalle + */ + public function addCompetenciaRelatedByMallaCurricularDetalleId(\UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleIds) + { + $this->competenciaRelatedByMallaCurricularDetalleIds[] = $competenciaRelatedByMallaCurricularDetalleIds; + + return $this; + } + + /** + * Remove competenciaRelatedByMallaCurricularDetalleIds + * + * @param \UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleIds + */ + public function removeCompetenciaRelatedByMallaCurricularDetalleId(\UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleIds) + { + $this->competenciaRelatedByMallaCurricularDetalleIds->removeElement($competenciaRelatedByMallaCurricularDetalleIds); + } + + /** + * Get competenciaRelatedByMallaCurricularDetalleIds + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCompetenciaRelatedByMallaCurricularDetalleIds() + { + return $this->competenciaRelatedByMallaCurricularDetalleIds; + } + + /** + * Add competenciaRelatedByMallaCurricularDetalleId1s + * + * @param \UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleId1s + * @return MallaCurricularDetalle + */ + public function addCompetenciaRelatedByMallaCurricularDetalleId1(\UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleId1s) + { + $this->competenciaRelatedByMallaCurricularDetalleId1s[] = $competenciaRelatedByMallaCurricularDetalleId1s; + + return $this; + } + + /** + * Remove competenciaRelatedByMallaCurricularDetalleId1s + * + * @param \UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleId1s + */ + public function removeCompetenciaRelatedByMallaCurricularDetalleId1(\UBV\SurUbvBundle\Entity\Competencia $competenciaRelatedByMallaCurricularDetalleId1s) + { + $this->competenciaRelatedByMallaCurricularDetalleId1s->removeElement($competenciaRelatedByMallaCurricularDetalleId1s); + } + + /** + * Get competenciaRelatedByMallaCurricularDetalleId1s + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCompetenciaRelatedByMallaCurricularDetalleId1s() + { + return $this->competenciaRelatedByMallaCurricularDetalleId1s; + } + + /** + * Add ofertaAcademicaDetalles + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles + * @return MallaCurricularDetalle + */ + public function addOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles) + { + $this->ofertaAcademicaDetalles[] = $ofertaAcademicaDetalles; + + return $this; + } + + /** + * Remove ofertaAcademicaDetalles + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles + */ + public function removeOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles) + { + $this->ofertaAcademicaDetalles->removeElement($ofertaAcademicaDetalles); + } + + /** + * Get ofertaAcademicaDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getOfertaAcademicaDetalles() + { + return $this->ofertaAcademicaDetalles; + } + + /** + * Set tramo + * + * @param \UBV\SurUbvBundle\Entity\Tramo $tramo + * @return MallaCurricularDetalle + */ + public function setTramo(\UBV\SurUbvBundle\Entity\Tramo $tramo) + { + $this->tramo = $tramo; + + return $this; + } + + /** + * Get tramo + * + * @return \UBV\SurUbvBundle\Entity\Tramo + */ + public function getTramo() + { + return $this->tramo; + } + + /** + * Set mallaCurricular + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular + * @return MallaCurricularDetalle + */ + public function setMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular) + { + $this->mallaCurricular = $mallaCurricular; + + return $this; + } + + /** + * Get mallaCurricular + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricular + */ + public function getMallaCurricular() + { + return $this->mallaCurricular; + } + + /** + * Set trayecto + * + * @param \UBV\SurUbvBundle\Entity\Trayecto $trayecto + * @return MallaCurricularDetalle + */ + public function setTrayecto(\UBV\SurUbvBundle\Entity\Trayecto $trayecto) + { + $this->trayecto = $trayecto; + + return $this; + } + + /** + * Get trayecto + * + * @return \UBV\SurUbvBundle\Entity\Trayecto + */ + public function getTrayecto() + { + return $this->trayecto; + } + + /** + * Set unidadCurricularDetalle + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalle + * @return MallaCurricularDetalle + */ + public function setUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalle) + { + $this->unidadCurricularDetalle = $unidadCurricularDetalle; + + return $this; + } + + /** + * Get unidadCurricularDetalle + * + * @return \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle + */ + public function getUnidadCurricularDetalle() + { + return $this->unidadCurricularDetalle; + } +} diff --git a/src/UBV/PracticaBundle/Entity/MallaCurricularDetalleRepository.php b/src/UBV/PracticaBundle/Entity/MallaCurricularDetalleRepository.php new file mode 100644 index 0000000..1d5ac8c --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/MallaCurricularDetalleRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return ModalidadEstudio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ModalidadEstudioRepository.php b/src/UBV/PracticaBundle/Entity/ModalidadEstudioRepository.php new file mode 100644 index 0000000..08cc3d2 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ModalidadEstudioRepository.php @@ -0,0 +1,15 @@ +mallaCurriculars = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return ModalidadMalla + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add mallaCurriculars + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars + * @return ModalidadMalla + */ + public function addMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars) + { + $this->mallaCurriculars[] = $mallaCurriculars; + + return $this; + } + + /** + * Remove mallaCurriculars + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars + */ + public function removeMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars) + { + $this->mallaCurriculars->removeElement($mallaCurriculars); + } + + /** + * Get mallaCurriculars + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurriculars() + { + return $this->mallaCurriculars; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ModalidadMallaRepository.php b/src/UBV/PracticaBundle/Entity/ModalidadMallaRepository.php new file mode 100644 index 0000000..dd11955 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ModalidadMallaRepository.php @@ -0,0 +1,15 @@ +parroquias = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'estado_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Municipio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Municipio + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add parroquias + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias + * @return Municipio + */ + public function addParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) + { + $this->parroquias[] = $parroquias; + + return $this; + } + + /** + * Remove parroquias + * + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias + */ + public function removeParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) + { + $this->parroquias->removeElement($parroquias); + } + + /** + * Get parroquias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getParroquias() + { + return $this->parroquias; + } + + /** + * Set estado + * + * @param \UBV\SurUbvBundle\Entity\Estado $estado + * @return Municipio + */ + public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado) + { + $this->estado = $estado; + + return $this; + } + + /** + * Get estado + * + * @return \UBV\SurUbvBundle\Entity\Estado + */ + public function getEstado() + { + return $this->estado; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/MunicipioRepository.php b/src/UBV/PracticaBundle/Entity/MunicipioRepository.php new file mode 100644 index 0000000..d812bee --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/MunicipioRepository.php @@ -0,0 +1,32 @@ +getEntityManager(); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('municipio') + ->from('UBVSurUbvBundle:Municipio', 'municipio') + ->Join('municipio.estado', 'estado', 'estado.id = municipio.estado_id') + ->where('estado.id = :estado_id') + ->setParameter('estado_id',$estado_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/Nacionalidad.php b/src/UBV/PracticaBundle/Entity/Nacionalidad.php new file mode 100644 index 0000000..5816a46 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Nacionalidad.php @@ -0,0 +1,143 @@ +personaNacionalidads = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'pais_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Nacionalidad + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + * @return Nacionalidad + */ + public function addPersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads[] = $personaNacionalidads; + + return $this; + } + + /** + * Remove personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + */ + public function removePersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads->removeElement($personaNacionalidads); + } + + /** + * Get personaNacionalidads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaNacionalidads() + { + return $this->personaNacionalidads; + } + + /** + * Set pais + * + * @param \UBV\SurUbvBundle\Entity\Pais $pais + * @return Nacionalidad + */ + public function setPais(\UBV\SurUbvBundle\Entity\Pais $pais) + { + $this->pais = $pais; + + return $this; + } + + /** + * Get pais + * + * @return \UBV\SurUbvBundle\Entity\Pais + */ + public function getPais() + { + return $this->pais; + } + + public function __toString(){ + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/NacionalidadRepository.php b/src/UBV/PracticaBundle/Entity/NacionalidadRepository.php new file mode 100644 index 0000000..e1a2e88 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/NacionalidadRepository.php @@ -0,0 +1,31 @@ +getEntityManager(); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('nacionalidad') + ->from('UBVSurUbvBundle:Nacionalidad' , 'nacionalidad') + ->where('pais.id = :pais_id') + ->setParameter('pais_id',$pais_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + + } +} \ No newline at end of file diff --git a/src/UBV/PracticaBundle/Entity/NivelAcademico.php b/src/UBV/PracticaBundle/Entity/NivelAcademico.php new file mode 100644 index 0000000..647d35a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/NivelAcademico.php @@ -0,0 +1,150 @@ +gradoAcademicos = new ArrayCollection(); + $this->programas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return NivelAcademico + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add gradoAcademicos + * + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademicos + * @return NivelAcademico + */ + public function addGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademicos) + { + $this->gradoAcademicos[] = $gradoAcademicos; + + return $this; + } + + /** + * Remove gradoAcademicos + * + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademicos + */ + public function removeGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademicos) + { + $this->gradoAcademicos->removeElement($gradoAcademicos); + } + + /** + * Get gradoAcademicos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getGradoAcademicos() + { + return $this->gradoAcademicos; + } + + /** + * Add programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + * @return NivelAcademico + */ + public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas[] = $programas; + + return $this; + } + + /** + * Remove programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + */ + public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas->removeElement($programas); + } + + /** + * Get programas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramas() + { + return $this->programas; + } +} diff --git a/src/UBV/PracticaBundle/Entity/NivelAcademicoRepository.php b/src/UBV/PracticaBundle/Entity/NivelAcademicoRepository.php new file mode 100644 index 0000000..6a1d05c --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/NivelAcademicoRepository.php @@ -0,0 +1,15 @@ +ofertaAcademicaDetalles = new ArrayCollection(); + $this->seccions = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'periodo_academico_id', 'aldea_malla_curricula_id', 'estatus'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return OfertaAcademica + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add ofertaAcademicaDetalles + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles + * @return OfertaAcademica + */ + public function addOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles) + { + $this->ofertaAcademicaDetalles[] = $ofertaAcademicaDetalles; + + return $this; + } + + /** + * Remove ofertaAcademicaDetalles + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles + */ + public function removeOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalles) + { + $this->ofertaAcademicaDetalles->removeElement($ofertaAcademicaDetalles); + } + + /** + * Get ofertaAcademicaDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getOfertaAcademicaDetalles() + { + return $this->ofertaAcademicaDetalles; + } + + /** + * Add seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + * @return OfertaAcademica + */ + public function addSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions[] = $seccions; + + return $this; + } + + /** + * Remove seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + */ + public function removeSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions->removeElement($seccions); + } + + /** + * Get seccions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getSeccions() + { + return $this->seccions; + } + + /** + * Set periodoAcademico + * + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico + * @return OfertaAcademica + */ + public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) + { + $this->periodoAcademico = $periodoAcademico; + + return $this; + } + + /** + * Get periodoAcademico + * + * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico + */ + public function getPeriodoAcademico() + { + return $this->periodoAcademico; + } + + /** + * Set aldeaMallaCurricula + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula + * @return OfertaAcademica + */ + public function setAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula) + { + $this->aldeaMallaCurricula = $aldeaMallaCurricula; + + return $this; + } + + /** + * Get aldeaMallaCurricula + * + * @return \UBV\SurUbvBundle\Entity\AldeaMallaCurricula + */ + public function getAldeaMallaCurricula() + { + return $this->aldeaMallaCurricula; + } +} diff --git a/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalle.php b/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalle.php new file mode 100644 index 0000000..62f6ea6 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalle.php @@ -0,0 +1,140 @@ +cargaAcademicas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'oferta_academica_id', 'malla_curricular_detalle_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Add cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + * @return OfertaAcademicaDetalle + */ + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas[] = $cargaAcademicas; + + return $this; + } + + /** + * Remove cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + */ + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas->removeElement($cargaAcademicas); + } + + /** + * Get cargaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCargaAcademicas() + { + return $this->cargaAcademicas; + } + + /** + * Set ofertaAcademica + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademica + * @return OfertaAcademicaDetalle + */ + public function setOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademica) + { + $this->ofertaAcademica = $ofertaAcademica; + + return $this; + } + + /** + * Get ofertaAcademica + * + * @return \UBV\SurUbvBundle\Entity\OfertaAcademica + */ + public function getOfertaAcademica() + { + return $this->ofertaAcademica; + } + + /** + * Set mallaCurricularDetalle + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalle + * @return OfertaAcademicaDetalle + */ + public function setMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalle) + { + $this->mallaCurricularDetalle = $mallaCurricularDetalle; + + return $this; + } + + /** + * Get mallaCurricularDetalle + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle + */ + public function getMallaCurricularDetalle() + { + return $this->mallaCurricularDetalle; + } +} diff --git a/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalleRepository.php b/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalleRepository.php new file mode 100644 index 0000000..2ba6ee5 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/OfertaAcademicaDetalleRepository.php @@ -0,0 +1,15 @@ +estados = new ArrayCollection(); + $this->nacionalidads = new ArrayCollection(); + $this->personas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Pais + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Pais + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add estados + * + * @param \UBV\SurUbvBundle\Entity\Estado $estados + * @return Pais + */ + public function addEstado(\UBV\SurUbvBundle\Entity\Estado $estados) + { + $this->estados[] = $estados; + + return $this; + } + + /** + * Remove estados + * + * @param \UBV\SurUbvBundle\Entity\Estado $estados + */ + public function removeEstado(\UBV\SurUbvBundle\Entity\Estado $estados) + { + $this->estados->removeElement($estados); + } + + /** + * Get estados + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstados() + { + return $this->estados; + } + + /** + * Set nacionalidad + * + * @param \UBV\SurUbvBundle\Entity\Nacionalidad $nacionalidad + * @return Pais + */ + public function setNacionalidad(\UBV\SurUbvBundle\Entity\Nacionalidad $nacionalidad = null) + { + $this->nacionalidad = $nacionalidad; + + return $this; + } + + /** + * Get nacionalidad + * + * @return \UBV\SurUbvBundle\Entity\Nacionalidad + */ + public function getNacionalidad() + { + return $this->nacionalidad; + } + + /** + * Add personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + * @return Pais + */ + public function addPersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas[] = $personas; + + return $this; + } + + /** + * Remove personas + * + * @param \UBV\SurUbvBundle\Entity\Persona $personas + */ + public function removePersona(\UBV\SurUbvBundle\Entity\Persona $personas) + { + $this->personas->removeElement($personas); + } + + /** + * Get personas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonas() + { + return $this->personas; + } + + public function __toString() + { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/Parroquia.php b/src/UBV/PracticaBundle/Entity/Parroquia.php new file mode 100644 index 0000000..41b972d --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Parroquia.php @@ -0,0 +1,241 @@ +ambientes = new ArrayCollection(); + $this->domicilioPersonas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'municipio_id', 'eje_municipal_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Parroquia + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Parroquia + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add ambientes + * + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambientes + * @return Parroquia + */ + public function addAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambientes) + { + $this->ambientes[] = $ambientes; + + return $this; + } + + /** + * Remove ambientes + * + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambientes + */ + public function removeAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambientes) + { + $this->ambientes->removeElement($ambientes); + } + + /** + * Get ambientes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbientes() + { + return $this->ambientes; + } + + /** + * Add domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + * @return Parroquia + */ + public function addDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas[] = $domicilioPersonas; + + return $this; + } + + /** + * Remove domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + */ + public function removeDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas->removeElement($domicilioPersonas); + } + + /** + * Get domicilioPersonas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDomicilioPersonas() + { + return $this->domicilioPersonas; + } + + /** + * Set municipio + * + * @param \UBV\SurUbvBundle\Entity\Municipio $municipio + * @return Parroquia + */ + public function setMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipio) + { + $this->municipio = $municipio; + + return $this; + } + + /** + * Get municipio + * + * @return \UBV\SurUbvBundle\Entity\Municipio + */ + public function getMunicipio() + { + return $this->municipio; + } + + /** + * Set ejeMunicipal + * + * @param \UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipal + * @return Parroquia + */ + public function setEjeMunicipal(\UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipal) + { + $this->ejeMunicipal = $ejeMunicipal; + + return $this; + } + + /** + * Get ejeMunicipal + * + * @return \UBV\SurUbvBundle\Entity\EjeMunicipal + */ + public function getEjeMunicipal() + { + return $this->ejeMunicipal; + } + + public function __toString() + { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/ParroquiaRepository.php b/src/UBV/PracticaBundle/Entity/ParroquiaRepository.php new file mode 100644 index 0000000..a848c9d --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ParroquiaRepository.php @@ -0,0 +1,32 @@ +getEntityManager(); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('parroquia') + ->from('UBVSurUbvBundle:Parroquia', 'parroquia') + ->Join('parroquia.municipio', 'municipio', 'municipio.id = parroquia.municipio_id') + ->where('municipio.id = :municipio_id') + ->setParameter('municipio_id',$municipio_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PeriodoAcademico.php b/src/UBV/PracticaBundle/Entity/PeriodoAcademico.php new file mode 100644 index 0000000..67baa98 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PeriodoAcademico.php @@ -0,0 +1,258 @@ +candidatos = new ArrayCollection(); + $this->estudianteDetalles = new ArrayCollection(); + $this->ofertaAcademicas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return PeriodoAcademico + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + * @return PeriodoAcademico + */ + public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles[] = $estudianteDetalles; + + return $this; + } + + /** + * Remove estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + */ + public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles->removeElement($estudianteDetalles); + } + + /** + * Get estudianteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDetalles() + { + return $this->estudianteDetalles; + } + + /** + * Add ofertaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas + * @return PeriodoAcademico + */ + public function addOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) + { + $this->ofertaAcademicas[] = $ofertaAcademicas; + + return $this; + } + + /** + * Remove ofertaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas + */ + public function removeOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) + { + $this->ofertaAcademicas->removeElement($ofertaAcademicas); + } + + /** + * Get ofertaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getOfertaAcademicas() + { + return $this->ofertaAcademicas; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return PeriodoAcademico + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set periodoEstatus + * + * @param \UBV\SurUbvBundle\Entity\PeriodoEstatus $periodoEstatus + * @return PeriodoAcademico + */ + public function setPeriodoEstatus(\UBV\SurUbvBundle\Entity\PeriodoEstatus $periodoEstatus) + { + $this->periodoEstatus = $periodoEstatus; + + return $this; + } + + /** + * Get periodoEstatus + * + * @return \UBV\SurUbvBundle\Entity\PeriodoEstatus + */ + public function getPeriodoEstatus() + { + return $this->periodoEstatus; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return PeriodoAcademico + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PeriodoAcademicoRepository.php b/src/UBV/PracticaBundle/Entity/PeriodoAcademicoRepository.php new file mode 100644 index 0000000..b75f65a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PeriodoAcademicoRepository.php @@ -0,0 +1,37 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('periodo.descripcion') + + ->from('UBVSurUbvBundle:PeriodoAcademico', 'periodo') + ->join('periodo.periodoEstatus','estatusPeriodo','estatusPeriodo.id = periodo.estatus_periodo_id') + ->where('periodo.estatus = :estatus') + ->Andwhere('estatusPeriodo.id = :estatusPeriodo') + ->setParameter('estatus',true) + ->setParameter('estatusPeriodo',4) + ->getQuery() + ->getOneOrNullResult(); + + //die(var_dump($dql)); + return $dql; + } + +} diff --git a/src/UBV/PracticaBundle/Entity/PeriodoEstatus.php b/src/UBV/PracticaBundle/Entity/PeriodoEstatus.php new file mode 100644 index 0000000..3674587 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PeriodoEstatus.php @@ -0,0 +1,142 @@ +periodoAcademicos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estatus'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return PeriodoEstatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return PeriodoEstatus + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add periodoAcademicos + * + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademicos + * @return PeriodoEstatus + */ + public function addPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademicos) + { + $this->periodoAcademicos[] = $periodoAcademicos; + + return $this; + } + + /** + * Remove periodoAcademicos + * + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademicos + */ + public function removePeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademicos) + { + $this->periodoAcademicos->removeElement($periodoAcademicos); + } + + /** + * Get periodoAcademicos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPeriodoAcademicos() + { + return $this->periodoAcademicos; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/PeriodoEstatusRepository.php b/src/UBV/PracticaBundle/Entity/PeriodoEstatusRepository.php new file mode 100644 index 0000000..a56c8c2 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PeriodoEstatusRepository.php @@ -0,0 +1,15 @@ +groups = new ArrayCollection(); + $this->aspirantes = new ArrayCollection(); + $this->depositos = new ArrayCollection(); + $this->docentes = new ArrayCollection(); + $this->domicilioPersonas = new ArrayCollection(); + $this->estudiantes = new ArrayCollection(); + $this->estudianteDocumentos = new ArrayCollection(); + $this->personaCorreos = new ArrayCollection(); + $this->personaDiscapacidads = new ArrayCollection(); + $this->personaEtnias = new ArrayCollection(); + $this->personaNacionalidads = new ArrayCollection(); + $this->personaTelefonos = new ArrayCollection(); + $this->personalAdministrativos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'primer_nombre', 'segundo_nombre', 'primer_apellido', 'segundo_apellido', 'fecha_nacimiento', 'estado_civil_id', 'genero_id', 'pais_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set primer_nombre + * + * @param string $primerNombre + * @return Persona + */ + public function setPrimerNombre($primerNombre) + { + $this->primer_nombre = $primerNombre; + + return $this; + } + + /** + * Get primer_nombre + * + * @return string + */ + public function getPrimerNombre() + { + return $this->primer_nombre; + } + + /** + * Set segundo_nombre + * + * @param string $segundoNombre + * @return Persona + */ + public function setSegundoNombre($segundoNombre) + { + $this->segundo_nombre = $segundoNombre; + + return $this; + } + + /** + * Get segundo_nombre + * + * @return string + */ + public function getSegundoNombre() + { + return $this->segundo_nombre; + } + + /** + * Set primer_apellido + * + * @param string $primerApellido + * @return Persona + */ + public function setPrimerApellido($primerApellido) + { + $this->primer_apellido = $primerApellido; + + return $this; + } + + /** + * Get primer_apellido + * + * @return string + */ + public function getPrimerApellido() + { + return $this->primer_apellido; + } + + /** + * Set segundo_apellido + * + * @param string $segundoApellido + * @return Persona + */ + public function setSegundoApellido($segundoApellido) + { + $this->segundo_apellido = $segundoApellido; + + return $this; + } + + /** + * Get segundo_apellido + * + * @return string + */ + public function getSegundoApellido() + { + return $this->segundo_apellido; + } + + /** + * Set fecha_nacimiento + * + * @param \DateTime $fechaNacimiento + * @return Persona + */ + public function setFechaNacimiento($fechaNacimiento) + { + $this->fecha_nacimiento = $fechaNacimiento; + + return $this; + } + + /** + * Get fecha_nacimiento + * + * @return \DateTime + */ + public function getFechaNacimiento() + { + return $this->fecha_nacimiento; + } + + /** + * Set estado_civil_id + * + * @param integer $estadoCivilId + * @return Persona + */ + public function setEstadoCivilId($estadoCivilId) + { + $this->estado_civil_id = $estadoCivilId; + + return $this; + } + + /** + * Get estado_civil_id + * + * @return integer + */ + public function getEstadoCivilId() + { + return $this->estado_civil_id; + } + + /** + * Set genero_id + * + * @param integer $generoId + * @return Persona + */ + public function setGeneroId($generoId) + { + $this->genero_id = $generoId; + + return $this; + } + + /** + * Get genero_id + * + * @return integer + */ + public function getGeneroId() + { + return $this->genero_id; + } + + /** + * Set pais_id + * + * @param integer $paisId + * @return Persona + */ + public function setPaisId($paisId) + { + $this->pais_id = $paisId; + + return $this; + } + + /** + * Get pais_id + * + * @return integer + */ + public function getPaisId() + { + return $this->pais_id; + } + + /** + * Set aspirante + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirante + * @return Persona + */ + public function setAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirante = null) + { + $this->aspirante = $aspirante; + + return $this; + } + + /** + * Get aspirante + * + * @return \UBV\SurUbvBundle\Entity\Aspirante + */ + public function getAspirante() + { + return $this->aspirante; + } + + /** + * Add depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + * @return Persona + */ + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos[] = $depositos; + + return $this; + } + + /** + * Remove depositos + * + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos + */ + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) + { + $this->depositos->removeElement($depositos); + } + + /** + * Get depositos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDepositos() + { + return $this->depositos; + } + + /** + * Set docente + * + * @param \UBV\SurUbvBundle\Entity\Docente $docente + * @return Persona + */ + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente = null) + { + $this->docente = $docente; + + return $this; + } + + /** + * Get docente + * + * @return \UBV\SurUbvBundle\Entity\Docente + */ + public function getDocente() + { + return $this->docente; + } + + /** + * Add domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + * @return Persona + */ + public function addDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas[] = $domicilioPersonas; + + return $this; + } + + /** + * Remove domicilioPersonas + * + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas + */ + public function removeDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) + { + $this->domicilioPersonas->removeElement($domicilioPersonas); + } + + /** + * Get domicilioPersonas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDomicilioPersonas() + { + return $this->domicilioPersonas; + } + + /** + * Set estudiante + * + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiante + * @return Persona + */ + public function setEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiante = null) + { + $this->estudiante = $estudiante; + + return $this; + } + + /** + * Get estudiante + * + * @return \UBV\SurUbvBundle\Entity\Estudiante + */ + public function getEstudiante() + { + return $this->estudiante; + } + + /** + * Add estudianteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos + * @return Persona + */ + public function addEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos) + { + $this->estudianteDocumentos[] = $estudianteDocumentos; + + return $this; + } + + /** + * Remove estudianteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos + */ + public function removeEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos) + { + $this->estudianteDocumentos->removeElement($estudianteDocumentos); + } + + /** + * Get estudianteDocumentos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDocumentos() + { + return $this->estudianteDocumentos; + } + + /** + * Add personaCorreos + * + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos + * @return Persona + */ + public function addPersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) + { + $this->personaCorreos[] = $personaCorreos; + + return $this; + } + + /** + * Remove personaCorreos + * + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos + */ + public function removePersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) + { + $this->personaCorreos->removeElement($personaCorreos); + } + + /** + * Get personaCorreos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaCorreos() + { + return $this->personaCorreos; + } + + /** + * Add personaDiscapacidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads + * @return Persona + */ + public function addPersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) + { + $this->personaDiscapacidads[] = $personaDiscapacidads; + + return $this; + } + + /** + * Remove personaDiscapacidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads + */ + public function removePersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) + { + $this->personaDiscapacidads->removeElement($personaDiscapacidads); + } + + /** + * Get personaDiscapacidads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaDiscapacidads() + { + return $this->personaDiscapacidads; + } + + /** + * Add personaEtnias + * + * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias + * @return Persona + */ + public function addPersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) + { + $this->personaEtnias[] = $personaEtnias; + + return $this; + } + + /** + * Remove personaEtnias + * + * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias + */ + public function removePersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) + { + $this->personaEtnias->removeElement($personaEtnias); + } + + /** + * Get personaEtnias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaEtnias() + { + return $this->personaEtnias; + } + + /** + * Set personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidads $personaNacionalidads + * @return Persona + */ + public function setPersonaNacionalidads(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads = null) + { + $this->personaNacionalidads = $personaNacionalidads; + foreach ($personaNacionalidads as $personaNacionalidad) { + $personaNacionalidad->Persona($this); + } + } + + /** + * Add personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + * @return Persona + */ + public function addPersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads[] = $personaNacionalidads; + + return $this; + } + + /** + * Remove personaNacionalidads + * + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads + */ + public function removePersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) + { + $this->personaNacionalidads->removeElement($personaNacionalidads); + } + + /** + * Get personaNacionalidads + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaNacionalidads() + { + return $this->personaNacionalidads; + } + + /** + * Add personaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos + * @return Persona + */ + public function addPersonaTelefono(\UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos) + { + $this->personaTelefonos[] = $personaTelefonos; + + return $this; + } + + /** + * Remove personaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos + */ + public function removePersonaTelefono(\UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos) + { + $this->personaTelefonos->removeElement($personaTelefonos); + } + + /** + * Get personaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaTelefonos() + { + return $this->personaTelefonos; + } + + /** + * Add personalAdministrativos + * + * @param \UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos + * @return Persona + */ + public function addPersonalAdministrativo(\UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos) + { + $this->personalAdministrativos[] = $personalAdministrativos; + + return $this; + } + + /** + * Remove personalAdministrativos + * + * @param \UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos + */ + public function removePersonalAdministrativo(\UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos) + { + $this->personalAdministrativos->removeElement($personalAdministrativos); + } + + /** + * Get personalAdministrativos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonalAdministrativos() + { + return $this->personalAdministrativos; + } + + /** + * Set estadoCivil + * + * @param \UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil + * @return Persona + */ + public function setEstadoCivil(\UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil) + { + $this->estadoCivil = $estadoCivil; + + return $this; + } + + /** + * Get estadoCivil + * + * @return \UBV\SurUbvBundle\Entity\EstadoCivil + */ + public function getEstadoCivil() + { + return $this->estadoCivil; + } + + /** + * Set genero + * + * @param \UBV\SurUbvBundle\Entity\Genero $genero + * @return Persona + */ + public function setGenero(\UBV\SurUbvBundle\Entity\Genero $genero) + { + $this->genero = $genero; + + return $this; + } + + /** + * Get genero + * + * @return \UBV\SurUbvBundle\Entity\Genero + */ + public function getGenero() + { + return $this->genero; + } + + /** + * Set pais + * + * @param \UBV\SurUbvBundle\Entity\Pais $pais + * @return Persona + */ + public function setPais(\UBV\SurUbvBundle\Entity\Pais $pais) + { + $this->pais = $pais; + + return $this; + } + + /** + * Get pais + * + * @return \UBV\SurUbvBundle\Entity\Pais + */ + public function getPais() + { + return $this->pais; + } + + /** + * Set aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return Persona + */ + public function setAspirantes(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes = null) + { + $this->aspirantes = $aspirantes; + foreach ($aspirantes as $aspirante) { + $aspirante->Persona($this); + } + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return Persona + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + /** + * Set groups + * + * @param Doctrine\Common\Collections\ArrayCollection $groups + * @return Persona + */ + + public function setGroups(\FOS\UserBundle\Model\GroupInterface $groups) + { + return $this->addGroup($groups); + } + + /** + * Get groups + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getGroups() + { + return $this->groups; + } + + /** + * Add groups + * + * @param \RF\AutenticacionBundle\Entity\Group $groups + * @return Usuarios + */ + /*public function addGroup(\RF\AutenticacionBundle\Entity\Group $groups) + { + $this->groups[] = $groups; + + return $this; + }*/ + + /** + * Remove groups + * + * @param \RF\AutenticacionBundle\Entity\Group $groups + */ + /*public function removeGroup(\RF\AutenticacionBundle\Entity\Group $groups) + { + $this->groups->removeElement($groups); + }*/ +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaCorreo.php b/src/UBV/PracticaBundle/Entity/PersonaCorreo.php new file mode 100644 index 0000000..20fc900 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaCorreo.php @@ -0,0 +1,132 @@ +id; + } + + /** + * Set correo + * + * @param string $correo + * @return PersonaCorreo + */ + public function setCorreo($correo) + { + $this->correo = $correo; + + return $this; + } + + /** + * Get correo + * + * @return string + */ + public function getCorreo() + { + return $this->correo; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonaCorreo + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set correoTipo + * + * @param \UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo + * @return PersonaCorreo + */ + public function setCorreoTipo(\UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo) + { + $this->correoTipo = $correoTipo; + + return $this; + } + + /** + * Get correoTipo + * + * @return \UBV\SurUbvBundle\Entity\CorreoTipo + */ + public function getCorreoTipo() + { + return $this->correoTipo; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaCorreoRepository.php b/src/UBV/PracticaBundle/Entity/PersonaCorreoRepository.php new file mode 100644 index 0000000..167fc5e --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaCorreoRepository.php @@ -0,0 +1,34 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('correo.descripcion as Correo') + ->from('UBVSurUbvBundle:PersonaCorreo', 'correo') + ->join('correo.correoTipo','correoTipo', 'correo.correo_tipo_id = correoTipo.id') + ->where('correo.persona_id = :usuarioId') + ->Andwhere('tipoCorreo.descripcion = :descripcionCorreoTipo') + ->setParameter('usuarioId', $usuarioId) + ->setParameter('descripcionCorreoTipo', 'Personal') + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + + die(dump($dql)); + return $arregloCuentas; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaDiscapacidad.php b/src/UBV/PracticaBundle/Entity/PersonaDiscapacidad.php new file mode 100644 index 0000000..2f39959 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaDiscapacidad.php @@ -0,0 +1,155 @@ +id; + } + + /** + * Set codigo_conapdis + * + * @param string $codigoConapdis + * @return PersonaDiscapacidad + */ + public function setCodigoConapdis($codigoConapdis) + { + $this->codigo_conapdis = $codigoConapdis; + + return $this; + } + + /** + * Get codigo_conapdis + * + * @return string + */ + public function getCodigoConapdis() + { + return $this->codigo_conapdis; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonaDiscapacidad + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set discapacidad + * + * @param \UBV\SurUbvBundle\Entity\Discapacidad $discapacidad + * @return PersonaDiscapacidad + */ + public function setDiscapacidad(\UBV\SurUbvBundle\Entity\Discapacidad $discapacidad) + { + $this->discapacidad = $discapacidad; + + return $this; + } + + /** + * Get discapacidad + * + * @return \UBV\SurUbvBundle\Entity\Discapacidad + */ + public function getDiscapacidad() + { + return $this->discapacidad; + } + + /** + * Set observacion + * + * @param string $observacion + * @return PersonaDiscapacidad + */ + public function setObservacion($observacion) + { + $this->observacion = $observacion; + + return $this; + } + + /** + * Get observacion + * + * @return string + */ + public function getObservacion() + { + return $this->observacion; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaDiscapacidadRepository.php b/src/UBV/PracticaBundle/Entity/PersonaDiscapacidadRepository.php new file mode 100644 index 0000000..0ad4653 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaDiscapacidadRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonaEtnia + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set etnia + * + * @param \UBV\SurUbvBundle\Entity\Etnia $etnia + * @return PersonaEtnia + */ + public function setEtnia(\UBV\SurUbvBundle\Entity\Etnia $etnia) + { + $this->etnia = $etnia; + + return $this; + } + + /** + * Get etnia + * + * @return \UBV\SurUbvBundle\Entity\Etnia + */ + public function getEtnia() + { + return $this->etnia; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaEtniaRepository.php b/src/UBV/PracticaBundle/Entity/PersonaEtniaRepository.php new file mode 100644 index 0000000..34794c9 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaEtniaRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set identificacion + * + * @param integer $identificacion + * @return PersonaNacionalidad + */ + public function setIdentificacion($identificacion) + { + $this->identificacion = $identificacion; + + return $this; + } + + /** + * Get identificacion + * + * @return integer + */ + public function getIdentificacion() + { + return $this->identificacion; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return PersonaNacionalidad + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set nacionalidad + * + * @param \UBV\SurUbvBundle\Entity\Nacionalidad $nacionalidad + * @return PersonaNacionalidad + */ + public function setNacionalidad(\UBV\SurUbvBundle\Entity\Nacionalidad $nacionalidad) + { + $this->nacionalidad = $nacionalidad; + + return $this; + } + + /** + * Get nacionalidad + * + * @return \UBV\SurUbvBundle\Entity\Nacionalidad + */ + public function getNacionalidad() + { + return $this->nacionalidad; + } + + /** + * Set documentoIdentidadTipo + * + * @param \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo + * @return PersonaNacionalidad + */ + public function setDocumentoIdentidadTipo(\UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo) + { + $this->documentoIdentidadTipo = $documentoIdentidadTipo; + + return $this; + } + + /** + * Get documentoIdentidadTipo + * + * @return \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo + */ + public function getDocumentoIdentidadTipo() + { + return $this->documentoIdentidadTipo; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonaNacionalidad + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaNacionalidadRepository.php b/src/UBV/PracticaBundle/Entity/PersonaNacionalidadRepository.php new file mode 100644 index 0000000..d21a297 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaNacionalidadRepository.php @@ -0,0 +1,35 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('nacionalidad') + + ->from('UBVSurUbvBundle:PersonaNacionalidad', 'nacionalidad') + ->where('nacionalidad.persona = :personaId') + ->Andwhere('nacionalidad.estatus = :estatusNacionalidad') + ->setParameter('estatusNacionalidad',true) + ->setParameter('personaId',$personaId) + ->getQuery() + ->getOneOrNullResult(); + + //die(var_dump($dql)); + return $dql; + } + +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaRepository.php b/src/UBV/PracticaBundle/Entity/PersonaRepository.php new file mode 100644 index 0000000..89d750a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaRepository.php @@ -0,0 +1,425 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona', + 'nacionalidad as Nacionalaidad ', + 'nacionalidadPersona as NacionalaidadPersona', + 'documentoIdentidad as Documentoidentidad', + 'genero as Genero', + 'estadoCivil as estadoCivilPersona', + 'telefonos as PersonaTelefonos','telefonoCodigoArea','telefonoTipo', + 'correos','correoTipo', + 'groups') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('persona.genero', 'genero', 'persona.id = genero.persona_id') + ->Join('persona.estadoCivil', 'estadoCivil', 'persona.id = estadoCivil.persona_id') + ->Join('persona.groups', 'groups', 'persona.id = groups.persona_id') + ->LeftJoin('persona.personaCorreos', 'correos', 'persona.id = correos.persona_id') + + ->leftJoin('persona.personaTelefonos', 'telefonos', 'persona.id = telefonos.persona_id') + ->LeftJoin('correos.correoTipo', 'correoTipo', 'correoTipo.id = correo.correo_tipo_id') + ->LeftJoin('telefonos.telefonoCodigoArea', 'telefonoCodigoArea', 'telefonoCodigoArea.id = telefono.telefono_codigo_area_id') + ->LeftJoin('telefonoCodigoArea.telefonoTipo', 'telefonoTipo', 'telefonoCodigoArea.id = telefonoTipo.telefono_codigo_area_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('nacionalidad.nacionalidad', 'nacionalidadPersona', 'nacionalidad.nacionalidad_id = nacionalidadPersona.id') + ->where('nacionalidad.estatus = :estatusNacionalidad') + ->setParameter('estatusNacionalidad', true) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + return $dql; + } + + public function findObjetoPersonaCompletoByIdAspirante($aspiranteId) { + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') + ->where('aspirante.id = :aspiranteId') + ->setParameter('aspiranteId', $aspiranteId) + + ->getQuery() + ->getSingleResult(Query::HYDRATE_ARRAY); + + //die(dump($dql)); + return $dql; + } + + public function findObjetoPersonaByIdAspirante($aspiranteId) { + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') + ->where('aspirante.id = :aspiranteId') + ->setParameter('aspiranteId', $aspiranteId) + + ->getQuery() + ->getSingleResult(); + + //die(dump($dql)); + return $dql; + } + + public function findCuentasAspirantes() { + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona.username as Correo') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + $arregloCuentas = array(); + foreach ($dql as $persona){ + $arregloCuentas[]=$persona["Correo"]; + } + //die(var_dump($arregloCuentas)); + return $arregloCuentas; + } + + + public function findObjetoPersonaCompletoById($datos_form) { + $em = $this->getEntityManager(); + + $tipoDocumento = $datos_form["tipoDocumentoIdentificacion"]; + $identificacion = $datos_form["identificacion"]; + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona as Persona', + 'nacionalidad as Nacionalaidad ', + 'documentoIdentidad as Documentoidentidad') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->where('nacionalidad.identificacion = :numeroIdentficacion') + ->Andwhere('nacionalidad.documentoIdentidadTipo = :tipoIdentficacion') + ->setParameter('numeroIdentficacion', $identificacion) + ->setParameter('tipoIdentficacion', $tipoDocumento) + ->getQuery() + ->getOneOrNullResult(Query::HYDRATE_ARRAY); + + //die(var_dump($dql)); + return $dql; + } + + public function findObjetoPersonaById($personaId) { + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona','nacionalidad'/*,'documentos'*/) + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + //->innerJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') + ->where('persona.id = :personaId') + ->AndWhere('nacionalidad.estatus = :estatusNacionalidad') + //->Andwhere('documentos.estatus = :estatusDocumentos') + ->setParameter('personaId', $personaId) + ->setParameter('estatusNacionalidad', true) + //->setParameter('estatusDocumentos', true) + ->getQuery() + ->getOneOrNullResult(); + + //die(var_dump($dql)); + return $dql; + } + + public function findArregloPersonaById($personaId) { + $em = $this->getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona as Persona', + 'nacionalidad as Nacionalaidad ', + 'nacionalidadPersona as NacionalaidadPersona', + 'documentoIdentidad as Documentoidentidad', + 'genero as Genero', + 'estadoCivil as estadoCivilPersona', + 'telefonos as PersonaTelefonos','telefonoCodigoArea','telefonoTipo', + 'correos','correoTipo', + 'aspirantes', 'aspiranteEstatus','aspiranteTipo', + 'programa','programaTipo','programaNivel','aldea','aldeaTipo','programaRequisito','documentos','requisitos', + 'groups') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('persona.genero', 'genero', 'persona.id = genero.persona_id') + ->Join('persona.estadoCivil', 'estadoCivil', 'persona.id = estadoCivil.persona_id') + ->Join('persona.groups', 'groups', 'persona.id = groups.persona_id') + ->LeftJoin('persona.personaCorreos', 'correos', 'persona.id = correos.persona_id') + ->LeftJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') + ->LeftJoin('documentos.requisitoInscripcion', 'requisitos', 'documentos.requisito_inscripcion_id = requisitos.id') + ->LeftJoin('persona.aspirantes', 'aspirantes', 'persona.id = aspirantes.persona_id') + ->LeftJoin('aspirantes.programa', 'programa', 'aspirantes.id = programa.aspirante_id') + ->LeftJoin('programa.requisitoInscripcions', 'programaRequisito', 'programa.id = programaRequisito.programa_id') + ->LeftJoin('aspirantes.aspiranteEstatus', 'aspiranteEstatus', 'aspirantes.id = aspiranteEstatus.aspirante_id') + ->LeftJoin('aspirantes.aspiranteTipo', 'aspiranteTipo', 'aspirantes.id = aspiranteTipo.aspirante_id') + ->LeftJoin('aspirantes.aldea', 'aldea', 'aspirantes.id = aldea.aspirante_id') + ->LeftJoin('aldea.aldeaTipo', 'aldeaTipo', 'aldea.id = aldeaTipo.aldea_id') + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.id = programaTipo.programa_id') + ->LeftJoin('programaTipo.programaNivel', 'programaNivel', 'programaTipo.id = programanivel.programa_id') + ->leftJoin('persona.personaTelefonos', 'telefonos', 'persona.id = telefonos.persona_id') + ->LeftJoin('correos.correoTipo', 'correoTipo', 'correoTipo.id = correo.correo_tipo_id') + ->LeftJoin('telefonos.telefonoCodigoArea', 'telefonoCodigoArea', 'telefonoCodigoArea.id = telefono.telefono_codigo_area_id') + ->LeftJoin('telefonoCodigoArea.telefonoTipo', 'telefonoTipo', 'telefonoCodigoArea.id = telefonoTipo.telefono_codigo_area_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('nacionalidad.nacionalidad', 'nacionalidadPersona', 'nacionalidad.nacionalidad_id = nacionalidadPersona.id') + ->where('persona.id = :personaId') + ->Andwhere('nacionalidad.estatus = :estatusNacionalidad') + ->setParameter('personaId', $personaId) + ->setParameter('estatusNacionalidad', true) + + ->getQuery() + ->getSingleResult(Query::HYDRATE_ARRAY); + + return $dql; + } + + + + public function findPersonaByIdentificacion($datos_form) { + $em = $this->getEntityManager(); + //die(dump("hola")); + $tipoDocumento = $datos_form["tipoDocumentoIdentificacion"]; + $identificacion = $datos_form["identificacion"]; + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona.id as IdPersona, persona.primer_nombre as PrimerNombre, persona.segundo_nombre as SegundoNombre,' + .'persona.primer_apellido as PrimerApellido, persona.segundo_apellido as SegundoApellido', + 'nacionalidad.identificacion as NumIdentificacion, nacionalidad.estatus as EstatusNacionalidad', + 'documentoIdentidad.id as TipoDocIdent') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->where('nacionalidad.identificacion = :numeroIdentficacion') + ->Andwhere('nacionalidad.documentoIdentidadTipo = :tipoIdentficacion') + ->setParameter('numeroIdentficacion', $identificacion) + ->setParameter('tipoIdentficacion', $tipoDocumento) + ->getQuery() + ->getOneOrNullResult(Query::HYDRATE_ARRAY); + + return $dql; + } + + public function findPersonaByCedula($cedula) { + $em = $this->getEntityManager(); + + + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona') + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->where('nacionalidad.identificacion = :numeroIdentficacion') + ->setParameter('numeroIdentficacion', $cedula) + ->getQuery() + ->getOneOrNullResult(); + + return $dql; + } + + public function findCandidatoByIdentificacionPersonaAndNivelPrograma($datos_form) { + + $em = $this->getEntityManager(); + + $tipoDocumento = $datos_form["tipoDocumentoIdentificacion"]; + $identificacion = $datos_form["identificacion"]; + + //$primerNombre = $datos_form["primerNombre"]; + //$segundoNombre = $datos_form["segundoNombre"]; + //$primerApellido = $datos_form["primerApellido"]; + //$segundoApellido = $datos_form["segundoApellido"]; + + //$correoPersonal = $datos_form["correoPersonal"]; + $programaNivel = $datos_form["programaNivel"]; + + $periodoAIniciar = $em->getRepository("UBVSurUbvBundle:PeriodoAcademico")->findObjetoPeriodoAcademicoByEstatus("Por Iniciar"); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('candidato','documentoIdentidad','etnia','discapacidad','correoTipo','aldea','programa', + 'estado','telefonoCodigoArea','estadoCivil','genero','aspiranteEstatus','aspiranteTipo','periodoAcademico') + ->from('UBVSurUbvBundle:Candidato', 'candidato') + ->Join('candidato.documentoIdentidadTipo', 'documentoIdentidad', 'candidato.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('candidato.periodoAcademico', 'periodoAcademico', 'candidato.periodo_academico_id = periodoAcademico.id') + ->Join('candidato.etnia', 'etnia', 'candidato.etnia_id = etnia.id') + ->Join('candidato.discapacidad', 'discapacidad', 'candidato.discapacidad_id = discapacidad.id') + ->Join('candidato.correoTipo', 'correoTipo', 'candidato.correo_tipo_id = correoTipo.id') + ->Join('candidato.aldea', 'aldea', 'candidato.aldea_id = aldea.id') + ->Join('candidato.programa', 'programa', 'candidato.programa_id = programa.id') + ->Join('programa.programaTipo', 'programaTipo', 'programa.programa_tipo_id = programaTipo.id') + ->Join('programaTipo.programaNivel', 'programaNiivel', 'programaTipo.programa_nivel_id = programaNivel.id') + ->Join('candidato.estado', 'estado', 'candidato.estado_id = estado.id') + ->Join('candidato.telefonoCodigoArea', 'telefonoCodigoArea', 'candidato.telefono_codigo_area_id = telefonoCodigoArea.id') + ->Join('candidato.estadoCivil', 'estadoCivil', 'candidato.estado_civil_id = estadoCivil.id') + ->Join('candidato.genero', 'genero', 'candidato.genero_id = genero.id') + ->Join('candidato.aspiranteEstatus', 'aspiranteEstatus', 'candidato.aspirante_estatus_id = aspiranteEstatus.id') + ->Join('candidato.aspiranteTipo', 'aspiranteTipo', 'candidato.aspirante_tipo_id = aspiranteTipo.id') + ->where('candidato.identificacion = :numeroIdentficacion') + ->Andwhere('candidato.documentoIdentidadTipo = :tipoIdentficacion') + ->Andwhere('programaTipo.programaNivel = :programaNivel') + ->setParameter('numeroIdentficacion', $identificacion) + ->setParameter('tipoIdentficacion', $tipoDocumento) + ->setParameter('programaNivel', $programaNivel) + ->getQuery() + ->getOneOrNullResult(); + + //return $dql; + //die(dump($dql)); + if (!is_null($dql)) { + //die(var_dump($dql)); + return $dql; + } else { + //die("no trae nada"); + return false; + } + } + + + + public function findAspiranteByIdentificacionPersonaAndNivelPrograma($datos_form) { + + $em = $this->getEntityManager(); + + $tipoDocumento = $datos_form["tipoDocumentoIdentificacion"]; + $identificacion = $datos_form["identificacion"]; + + //$primerNombre = $datos_form["primerNombre"]; + //$segundoNombre = $datos_form["segundoNombre"]; + //$primerApellido = $datos_form["primerApellido"]; + //$segundoApellido = $datos_form["segundoApellido"]; + + //$correoPersonal = $datos_form["correoPersonal"]; + $programaNivel = $datos_form["programaNivel"]; + + $periodoAIniciar = $em->getRepository("UBVSurUbvBundle:PeriodoAcademico")->findObjetoPeriodoAcademicoByEstatus("Por Iniciar"); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona.id as IdPersona, persona.primer_nombre as PrimerNombre,' + . 'persona.primer_apellido as PrimerApellido', + 'nacionalidad.identificacion as NumIdentificacion', + 'documentoIdentidad.id as TipoDocIdent', + 'aspirante.id as AspiranteId', + 'pfg.descripcion as Programa', + 'pfg_tipo.id as ProgramaTipoId, pfg_tipo.descripcion as ProgramaTipo', + 'aldea.descripcion as Aldea' + ) + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('persona.aspirantes', 'aspirante', 'persona.Id = aspirante.persona_id') + ->Join('aspirante.programa', 'pfg', 'pfg.id = aspirante.programa_id') + ->Join('pfg.programaTipo', 'pfg_tipo', 'pfg.id = pfg_tipo.programa_id') + ->Join('pfg_tipo.programaNivel', 'nivel_pfg', 'nivel_pfg.id = pfg_tipo.programa_nivel_id') + ->Join('aspirante.aldea', 'aldea', 'aldea.id = aspirante.aldea_id') + ->where('nacionalidad.identificacion = :numeroIdentficacion') + ->Andwhere('nacionalidad.documentoIdentidadTipo = :tipoIdentficacion') + ->Andwhere('pfg_tipo.programaNivel = :nivelPrograma') + ->Andwhere('aspirante.periodo_asignado = :periodoAIniciar') + ->setParameter('numeroIdentficacion', $identificacion) + ->setParameter('tipoIdentficacion', $tipoDocumento) + ->setParameter('nivelPrograma', $programaNivel) + ->setParameter('periodoAIniciar', $periodoAIniciar) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + if (!empty($dql)) { + //die(var_dump($dql)); + return $dql; + } else { + //die("no trae nada"); + return false; + } + } + + public function findEstudianteByIdentificacionPersonaAndNivelPrograma($datos_form) { + + $em = $this->getEntityManager(); + + $tipoDocumento = $datos_form["tipoDocumentoIdentificacion"]; + $identificacion = $datos_form["identificacion"]; + + //$primerNombre = $datos_form["primerNombre"]; + //$segundoNombre = $datos_form["segundoNombre"]; + //$primerApellido = $datos_form["primerApellido"]; + //$segundoApellido = $datos_form["segundoApellido"]; + + //$correoPersonal = $datos_form["correoPersonal"]; + $nivelPrograma = $datos_form["programaNivel"]; + + $result = $em->createQueryBuilder(); + + $dql = $result->select('persona.id as IdPersona, persona.primer_nombre as PrimerNombre,' + . 'persona.primer_apellido as PrimerApellido', + 'nacionalidad.identificacion as NumIdentificacion', + 'documentoIdentidad.id as TipoDocIdent', + 'estudiante.id as EstudianteId, estudiante.estatus as EstatusEstudiante', + 'detalle_estudiante.estatus as EstatusMallaEstudiante', + 'periodo_academico.descripcion as PeriodoInscripcion', + 'turno_estudio.descripcion as TurnoEstudio', + 'programa.descripcion as Programa', + 'tipo_programa.descripcion as TipoPrograma, tipo_programa.id as TipoProgramaId' + ) + ->from('UBVSurUbvBundle:Persona', 'persona') + ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') + ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') + ->Join('persona.estudiante', 'estudiante', 'persona.Id = estudiante.persona_id') + ->Join('estudiante.estudianteDetalles', 'detalle_estudiante', 'detalle_estudiante.estudiante = estudiante.id') + ->Join('detalle_estudiante.periodoAcademico', 'periodo_academico', 'detalle_estudiante.periodoAcademico = periodo_academico.id') + ->Join('detalle_estudiante.turno', 'turno_estudio', 'detalle_estudiante.turno = turno_estudio.id') + ->Join('detalle_estudiante.aldeaMallaCurricula', 'aldea_malla', 'detalle_estudiante.aldeaMallaCurricula = aldea_malla.id') + ->Join('aldea_malla.mallaCurricular', 'malla_curricular', 'aldea_malla.mallaCurricular = malla_curricular.id') + ->Join('malla_curricular.programa', 'programa', 'malla_curricular.programa = programa.id') + ->Join('programa.programaTipo', 'tipo_programa', 'programa.programaTipo = tipo_programa.id') + ->Join('tipo_programa.programaNivel', 'nivel_programa', 'tipo_programa.programaNivel = nivel_programa.id') + ->where('nacionalidad.identificacion = :numeroIdentficacion') + ->Andwhere('nacionalidad.documentoIdentidadTipo = :tipoIdentficacion') + ->Andwhere('programa.programaTipo = :tipoPrograma') + ->Andwhere('detalle_estudiante.estatus = :estatusMallaEstudiante') + ->setParameter('numeroIdentficacion', $identificacion) + ->setParameter('tipoIdentficacion', $tipoDocumento) + ->setParameter('tipoPrograma', $nivelPrograma) + ->setParameter('estatusMallaEstudiante', 1) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + if (!empty($dql)) { + //die(var_dump($dql)); + return $dql; + } else { + //die("prueba"); + return false; + } + } + +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaTelefono.php b/src/UBV/PracticaBundle/Entity/PersonaTelefono.php new file mode 100644 index 0000000..89ae4a4 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaTelefono.php @@ -0,0 +1,130 @@ +id; + } + + /** + * Set telefono + * + * @param string $telefono + * @return PersonaTelefono + */ + public function setTelefono($telefono) + { + $this->telefono = $telefono; + + return $this; + } + + /** + * Get telefono + * + * @return string + */ + public function getTelefono() + { + return $this->telefono; + } + + /** + * Set telefonoCodigoArea + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea + * @return PersonaTelefono + */ + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) + { + $this->telefonoCodigoArea = $telefonoCodigoArea; + + return $this; + } + + /** + * Get telefonoCodigoArea + * + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea + */ + public function getTelefonoCodigoArea() + { + return $this->telefonoCodigoArea; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonaTelefono + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonaTelefonoRepository.php b/src/UBV/PracticaBundle/Entity/PersonaTelefonoRepository.php new file mode 100644 index 0000000..cdc4359 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonaTelefonoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set persona + * + * @param \UBV\SurUbvBundle\Entity\Persona $persona + * @return PersonalAdministrativo + */ + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) + { + $this->persona = $persona; + + return $this; + } + + /** + * Get persona + * + * @return \UBV\SurUbvBundle\Entity\Persona + */ + public function getPersona() + { + return $this->persona; + } + + /** + * Set unidadAdministrativa + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa + * @return PersonalAdministrativo + */ + public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa) + { + $this->unidadAdministrativa = $unidadAdministrativa; + + return $this; + } + + /** + * Get unidadAdministrativa + * + * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa + */ + public function getUnidadAdministrativa() + { + return $this->unidadAdministrativa; + } +} diff --git a/src/UBV/PracticaBundle/Entity/PersonalAdministrativoRepository.php b/src/UBV/PracticaBundle/Entity/PersonalAdministrativoRepository.php new file mode 100644 index 0000000..1581b10 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/PersonalAdministrativoRepository.php @@ -0,0 +1,15 @@ +aldeaProgramas = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + $this->aspirantes = new ArrayCollection(); + $this->comitepfaIntegrantes = new ArrayCollection(); + $this->docentes = new ArrayCollection(); + $this->lineaInvestigacions = new ArrayCollection(); + $this->mallaCurriculars = new ArrayCollection(); + $this->requisitoInscripcions = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'centro_estudio_id', 'programa_tipo_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Programa + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Programa + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add aldeaProgramas + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas + * @return Programa + */ + public function addAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) + { + $this->aldeaProgramas[] = $aldeaProgramas; + + return $this; + } + + /** + * Remove aldeaProgramas + * + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas + */ + public function removeAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) + { + $this->aldeaProgramas->removeElement($aldeaProgramas); + } + + /** + * Get aldeaProgramas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaProgramas() + { + return $this->aldeaProgramas; + } + + /** + * Add aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + * @return Programa + */ + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes[] = $aspirantes; + + return $this; + } + + /** + * Remove aspirantes + * + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes + */ + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) + { + $this->aspirantes->removeElement($aspirantes); + } + + /** + * Get aspirantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAspirantes() + { + return $this->aspirantes; + } + + /** + * Add comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + * @return Programa + */ + public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; + + return $this; + } + + /** + * Remove comitepfaIntegrantes + * + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes + */ + public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) + { + $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); + } + + /** + * Get comitepfaIntegrantes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getComitepfaIntegrantes() + { + return $this->comitepfaIntegrantes; + } + + /** + * Add docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + * @return Programa + */ + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes[] = $docentes; + + return $this; + } + + /** + * Remove docentes + * + * @param \UBV\SurUbvBundle\Entity\Docente $docentes + */ + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) + { + $this->docentes->removeElement($docentes); + } + + /** + * Get docentes + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getDocentes() + { + return $this->docentes; + } + + /** + * Add lineaInvestigacions + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacions + * @return Programa + */ + public function addLineaInvestigacion(\UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacions) + { + $this->lineaInvestigacions[] = $lineaInvestigacions; + + return $this; + } + + /** + * Remove lineaInvestigacions + * + * @param \UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacions + */ + public function removeLineaInvestigacion(\UBV\SurUbvBundle\Entity\LineaInvestigacion $lineaInvestigacions) + { + $this->lineaInvestigacions->removeElement($lineaInvestigacions); + } + + /** + * Get lineaInvestigacions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getLineaInvestigacions() + { + return $this->lineaInvestigacions; + } + + /** + * Add mallaCurriculars + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars + * @return Programa + */ + public function addMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars) + { + $this->mallaCurriculars[] = $mallaCurriculars; + + return $this; + } + + /** + * Remove mallaCurriculars + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars + */ + public function removeMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurriculars) + { + $this->mallaCurriculars->removeElement($mallaCurriculars); + } + + /** + * Get mallaCurriculars + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurriculars() + { + return $this->mallaCurriculars; + } + + /** + * Set centroEstudio + * + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio + * @return Programa + */ + public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio = null) + { + $this->centroEstudio = $centroEstudio; + + return $this; + } + + /** + * Get centroEstudio + * + * @return \UBV\SurUbvBundle\Entity\CentroEstudio + */ + public function getCentroEstudio() + { + return $this->centroEstudio; + } + + /** + * Set programaTipo + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipo + * @return Programa + */ + public function setProgramaTipo(\UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipo) + { + $this->programaTipo = $programaTipo; + + return $this; + } + + /** + * Get programaTipo + * + * @return \UBV\SurUbvBundle\Entity\ProgramaTipo + */ + public function getProgramaTipo() + { + return $this->programaTipo; + } + + public function __toString(){ + return $this->getDescripcion(); + } + + /** + * Set nivelAcademico + * + * @param \UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico + * @return Programa + */ + public function setNivelAcademico(\UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico) + { + $this->nivelAcademico = $nivelAcademico; + + return $this; + } + + /** + * Get nivelAcademico + * + * @return \UBV\SurUbvBundle\Entity\NivelAcademico + */ + public function getNivelAcademico() + { + return $this->nivelAcademico; + } + + /** + * Add requisitoInscripcions + * + * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions + * @return Programa + */ + public function addRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions) + { + $this->requisitoInscripcions[] = $requisitoInscripcions; + + return $this; + } + + /** + * Remove requisitoInscripcions + * + * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions + */ + public function removeRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions) + { + $this->requisitoInscripcions->removeElement($requisitoInscripcions); + } + + /** + * Get requisitoInscripcions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoInscripcions() + { + return $this->requisitoInscripcions; + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return Programa + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ProgramaNivel.php b/src/UBV/PracticaBundle/Entity/ProgramaNivel.php new file mode 100644 index 0000000..498eda9 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ProgramaNivel.php @@ -0,0 +1,171 @@ +programaTipos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estatus', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return ProgramaNivel + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return ProgramaNivel + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Set codigo + * + * @param string $codigo + * @return ProgramaNivel + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add programaTipos + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos + * @return ProgramaNivel + */ + public function addProgramaTipo(\UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos) + { + $this->programaTipos[] = $programaTipos; + + return $this; + } + + /** + * Remove programaTipos + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos + */ + public function removeProgramaTipo(\UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos) + { + $this->programaTipos->removeElement($programaTipos); + } + + /** + * Get programaTipos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramaTipos() + { + return $this->programaTipos; + } + +public function __toString() + { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/ProgramaNivelRepository.php b/src/UBV/PracticaBundle/Entity/ProgramaNivelRepository.php new file mode 100644 index 0000000..c327e36 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ProgramaNivelRepository.php @@ -0,0 +1,32 @@ +getEntityManager(); + + $result = $em->createQueryBuilder(); + + $dql = $result->select('programaNivel.descripcion') + ->from('UBVSurUbvBundle:ProgramaNivel', 'programaNivel') + ->where('programaNivel.id = :programaNivelId') + ->setParameter('programaNivelId', $programaNivelId) + ->getQuery() + ->getOneOrNullResult(Query::HYDRATE_ARRAY); + //->getResult(Query::HYDRATE_ARRAY); + + //die(dump($dql)); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ProgramaRepository.php b/src/UBV/PracticaBundle/Entity/ProgramaRepository.php new file mode 100644 index 0000000..e4463bc --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ProgramaRepository.php @@ -0,0 +1,42 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('programa') + ->from('UBVSurUbvBundle:Programa', 'programa') + ->Join('programa.aldeaProgramas', 'aldeaPrograma', 'programa.id = aldeaPrograma.programa_id') + ->Join('aldeaPrograma.aldea', 'aldea', 'aldea.id = aldeaPrograma.aldea_id') + ->Join('programa.programaTipo', 'programaTipo', 'programaTipo.id = programa.programa_tipo_id') + ->Join('programaTipo.programaNivel', 'programaNivel', 'programaNivel.id = programaTipo.programa_nivel_id') + ->where('aldea.id = :aldea_id') + ->Andwhere('programaNivel.id = :programaNivel_id') + ->setParameter('aldea_id',$aldea_id) + ->setParameter('programaNivel_id',$programaNivel) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + //die(dump($dql)); + + return $dql; + } + +} \ No newline at end of file diff --git a/src/UBV/PracticaBundle/Entity/ProgramaTipo.php b/src/UBV/PracticaBundle/Entity/ProgramaTipo.php new file mode 100644 index 0000000..99bfd7a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ProgramaTipo.php @@ -0,0 +1,205 @@ +programas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo', 'programa_nivel_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return ProgramaTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return ProgramaTipo + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Remove programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + */ + public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas->removeElement($programas); + } + + public function __toString() + { + return $this->getDescripcion()." - (".$this->codigo.")"; + } + + /** + * Set programaNivel + * + * @param \UBV\SurUbvBundle\Entity\ProgramaNivel $programaNivel + * @return ProgramaTipo + */ + public function setProgramaNivel(\UBV\SurUbvBundle\Entity\ProgramaNivel $programaNivel) + { + $this->programaNivel = $programaNivel; + + return $this; + } + + /** + * Get programaNivel + * + * @return \UBV\SurUbvBundle\Entity\ProgramaNivel + */ + public function getProgramaNivel() + { + return $this->programaNivel; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + * @return ProgramaTipo + */ + public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas[] = $programas; + + return $this; + } + + /** + * Get programas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramas() + { + return $this->programas; + } + + /** + * Add requisitoInscripcions + * + * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions + * @return ProgramaTipo + */ + public function addRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions) + { + $this->requisitoInscripcions[] = $requisitoInscripcions; + + return $this; + } + + /** + * Remove requisitoInscripcions + * + * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions + */ + public function removeRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcions) + { + $this->requisitoInscripcions->removeElement($requisitoInscripcions); + } + + /** + * Get requisitoInscripcions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoInscripcions() + { + return $this->requisitoInscripcions; + } +} diff --git a/src/UBV/PracticaBundle/Entity/ProgramaTipoRepository.php b/src/UBV/PracticaBundle/Entity/ProgramaTipoRepository.php new file mode 100644 index 0000000..5162352 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ProgramaTipoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set descripcion_titulo + * + * @param string $descripcionTitulo + * @return RequisitoGrado + */ + public function setDescripcionTitulo($descripcionTitulo) + { + $this->descripcion_titulo = $descripcionTitulo; + + return $this; + } + + /** + * Get descripcion_titulo + * + * @return string + */ + public function getDescripcionTitulo() + { + return $this->descripcion_titulo; + } + + /** + * Set mallaCurricular + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular + * @return RequisitoGrado + */ + public function setMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular) + { + $this->mallaCurricular = $mallaCurricular; + + return $this; + } + + /** + * Get mallaCurricular + * + * @return \UBV\SurUbvBundle\Entity\MallaCurricular + */ + public function getMallaCurricular() + { + return $this->mallaCurricular; + } + + /** + * Set trayecto + * + * @param \UBV\SurUbvBundle\Entity\Trayecto $trayecto + * @return RequisitoGrado + */ + public function setTrayecto(\UBV\SurUbvBundle\Entity\Trayecto $trayecto) + { + $this->trayecto = $trayecto; + + return $this; + } + + /** + * Get trayecto + * + * @return \UBV\SurUbvBundle\Entity\Trayecto + */ + public function getTrayecto() + { + return $this->trayecto; + } + + /** + * Set tramo + * + * @param \UBV\SurUbvBundle\Entity\Tramo $tramo + * @return RequisitoGrado + */ + public function setTramo(\UBV\SurUbvBundle\Entity\Tramo $tramo) + { + $this->tramo = $tramo; + + return $this; + } + + /** + * Get tramo + * + * @return \UBV\SurUbvBundle\Entity\Tramo + */ + public function getTramo() + { + return $this->tramo; + } + + /** + * Set gradoAcademico + * + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico + * @return RequisitoGrado + */ + public function setGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico) + { + $this->gradoAcademico = $gradoAcademico; + + return $this; + } + + /** + * Get gradoAcademico + * + * @return \UBV\SurUbvBundle\Entity\GradoAcademico + */ + public function getGradoAcademico() + { + return $this->gradoAcademico; + } +} diff --git a/src/UBV/PracticaBundle/Entity/RequisitoGradoRepository.php b/src/UBV/PracticaBundle/Entity/RequisitoGradoRepository.php new file mode 100644 index 0000000..4e87da6 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/RequisitoGradoRepository.php @@ -0,0 +1,15 @@ +estudianteDocumentos = new ArrayCollection(); + $this->programas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'estatus'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return RequisitoInscripcion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return RequisitoInscripcion + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } + + /** + * Add estudianteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos + * @return RequisitoInscripcion + */ + public function addEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos) + { + $this->estudianteDocumentos[] = $estudianteDocumentos; + + return $this; + } + + /** + * Remove estudianteDocumentos + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos + */ + public function removeEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumentos) + { + $this->estudianteDocumentos->removeElement($estudianteDocumentos); + } + + /** + * Get estudianteDocumentos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDocumentos() + { + return $this->estudianteDocumentos; + } + + /** + * Add programaTipos + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos + * @return RequisitoInscripcion + */ + public function addProgramaTipo(\UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos) + { + $this->programaTipos[] = $programaTipos; + return $this; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Add programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + * @return RequisitoInscripcion + */ + public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas[] = $programas; + return $this; + } + + /** + * Remove programaTipos + * + * @param \UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos + */ + public function removeProgramaTipo(\UBV\SurUbvBundle\Entity\ProgramaTipo $programaTipos) + { + $this->programaTipos->removeElement($programaTipos); + } + + /** + * Get programaTipos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramaTipos() + { + return $this->programaTipos; + } + + /** + * Remove programas + * + * @param \UBV\SurUbvBundle\Entity\Programa $programas + */ + public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) + { + $this->programas->removeElement($programas); + } + + /** + * Get programas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getProgramas() + { + return $this->programas; + } +} diff --git a/src/UBV/PracticaBundle/Entity/RequisitoInscripcionRepository.php b/src/UBV/PracticaBundle/Entity/RequisitoInscripcionRepository.php new file mode 100644 index 0000000..8d12a9f --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/RequisitoInscripcionRepository.php @@ -0,0 +1,53 @@ +getEntityManager(); + $personaId = $persona->getId(); + + $result = $em->createQueryBuilder(); + $query = $em->createQueryBuilder(); + $subquery = $em->createQueryBuilder(); + + $sub = $result->select('requisito') + ->from('UBVSurUbvBundle:RequisitoInscripcion', 'requisito') + ->Join('requisito.estudianteDocumentos','estudianteDocumento','requisito.id = estudianteDocumento.requisito_id') + ->Join('estudianteDocumento.persona','persona','persona.id = estudianteDocumento.persona_id') + ->where('persona.id= :personaId'); + //->setParameter('prueba',239) + //->getQuery() + //->getResult(Query::HYDRATE_ARRAY); + + $dql = $query->select('documento') + ->from('UBVSurUbvBundle:RequisitoInscripcion', 'documento') + ->Join('documento.programas','requisitoPrograma','documento.id = requisitoPrograma.requisito_inscripcion_id') + ->Join('requisitoPrograma.aspirantes','aspirante','aspirante.programa_id = requisitoPrograma.id') + ->Join('aspirante.persona','personaAspirante','personaAspirante.id = aspirante.persona_id') + ->where($query->expr()->notIn('documento.id',$sub->getDQL())) + ->andWhere('personaAspirante.id = :personaId') + ->setParameter('personaId',$personaId) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + + + + //die(dump($dql)); + //die(var_dump($arregloCuentas)); + return $query; + + } + +} diff --git a/src/UBV/PracticaBundle/Entity/Seccion.php b/src/UBV/PracticaBundle/Entity/Seccion.php new file mode 100644 index 0000000..3739208 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Seccion.php @@ -0,0 +1,197 @@ +cargaAcademicas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'trayecto_id', 'tramo_id', 'oferta_academica_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Seccion + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + * @return Seccion + */ + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas[] = $cargaAcademicas; + + return $this; + } + + /** + * Remove cargaAcademicas + * + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas + */ + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) + { + $this->cargaAcademicas->removeElement($cargaAcademicas); + } + + /** + * Get cargaAcademicas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCargaAcademicas() + { + return $this->cargaAcademicas; + } + + /** + * Set trayecto + * + * @param \UBV\SurUbvBundle\Entity\Trayecto $trayecto + * @return Seccion + */ + public function setTrayecto(\UBV\SurUbvBundle\Entity\Trayecto $trayecto) + { + $this->trayecto = $trayecto; + + return $this; + } + + /** + * Get trayecto + * + * @return \UBV\SurUbvBundle\Entity\Trayecto + */ + public function getTrayecto() + { + return $this->trayecto; + } + + /** + * Set tramo + * + * @param \UBV\SurUbvBundle\Entity\Tramo $tramo + * @return Seccion + */ + public function setTramo(\UBV\SurUbvBundle\Entity\Tramo $tramo) + { + $this->tramo = $tramo; + + return $this; + } + + /** + * Get tramo + * + * @return \UBV\SurUbvBundle\Entity\Tramo + */ + public function getTramo() + { + return $this->tramo; + } + + /** + * Set ofertaAcademica + * + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademica + * @return Seccion + */ + public function setOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademica) + { + $this->ofertaAcademica = $ofertaAcademica; + + return $this; + } + + /** + * Get ofertaAcademica + * + * @return \UBV\SurUbvBundle\Entity\OfertaAcademica + */ + public function getOfertaAcademica() + { + return $this->ofertaAcademica; + } +} diff --git a/src/UBV/PracticaBundle/Entity/SeccionRepository.php b/src/UBV/PracticaBundle/Entity/SeccionRepository.php new file mode 100644 index 0000000..50ebfa6 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/SeccionRepository.php @@ -0,0 +1,15 @@ +aldeaTelefonos = new ArrayCollection(); + $this->personaTelefonos = new ArrayCollection(); + $this->unidadAdministrativaTelefonos = new ArrayCollection(); + $this->candidatos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'telefono_tipo_id','candidatos'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return TelefonoCodigoArea + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add aldeaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos + * @return TelefonoCodigoArea + */ + public function addAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) + { + $this->aldeaTelefonos[] = $aldeaTelefonos; + + return $this; + } + + /** + * Remove aldeaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos + */ + public function removeAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) + { + $this->aldeaTelefonos->removeElement($aldeaTelefonos); + } + + /** + * Get aldeaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaTelefonos() + { + return $this->aldeaTelefonos; + } + + /** + * Add personaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos + * @return TelefonoCodigoArea + */ + public function addPersonaTelefono(\UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos) + { + $this->personaTelefonos[] = $personaTelefonos; + + return $this; + } + + /** + * Remove personaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos + */ + public function removePersonaTelefono(\UBV\SurUbvBundle\Entity\PersonaTelefono $personaTelefonos) + { + $this->personaTelefonos->removeElement($personaTelefonos); + } + + /** + * Get personaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonaTelefonos() + { + return $this->personaTelefonos; + } + + /** + * Add unidadAdministrativaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos + * @return TelefonoCodigoArea + */ + public function addUnidadAdministrativaTelefono(\UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos) + { + $this->unidadAdministrativaTelefonos[] = $unidadAdministrativaTelefonos; + + return $this; + } + + /** + * Remove unidadAdministrativaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos + */ + public function removeUnidadAdministrativaTelefono(\UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos) + { + $this->unidadAdministrativaTelefonos->removeElement($unidadAdministrativaTelefonos); + } + + /** + * Get unidadAdministrativaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadAdministrativaTelefonos() + { + return $this->unidadAdministrativaTelefonos; + } + + /** + * Set telefonoTipo + * + * @param \UBV\SurUbvBundle\Entity\TelefonoTipo $telefonoTipo + * @return TelefonoCodigoArea + */ + public function setTelefonoTipo(\UBV\SurUbvBundle\Entity\TelefonoTipo $telefonoTipo) + { + $this->telefonoTipo = $telefonoTipo; + + return $this; + } + + /** + * Get telefonoTipo + * + * @return \UBV\SurUbvBundle\Entity\TelefonoTipo + */ + public function getTelefonoTipo() + { + return $this->telefonoTipo; + } + + public function __toString() { + return $this->getDescripcion(); + } + + /** + * Add candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + * @return TelefonoCodigoArea + */ + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos[] = $candidatos; + + return $this; + } + + /** + * Remove candidatos + * + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos + */ + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) + { + $this->candidatos->removeElement($candidatos); + } + + /** + * Get candidatos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCandidatos() + { + return $this->candidatos; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TelefonoCodigoAreaRepository.php b/src/UBV/PracticaBundle/Entity/TelefonoCodigoAreaRepository.php new file mode 100644 index 0000000..1d75bef --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TelefonoCodigoAreaRepository.php @@ -0,0 +1,33 @@ +getEntityManager(); + + //die(dump($telefonoTipo_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('telefonoCodigoArea') + ->from('UBVSurUbvBundle:TelefonoCodigoArea', 'telefonoCodigoArea') + ->Join('telefonoCodigoArea.telefonoTipo', 'telefonoTipo', 'telefonoTipo.id = telefonoCodigoArea.telefonoTipo_id') + ->where('telefonoTipo.id = :telefonoTipo_id') + ->setParameter('telefonoTipo_id',$telefonoTipo_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TelefonoTipo.php b/src/UBV/PracticaBundle/Entity/TelefonoTipo.php new file mode 100644 index 0000000..7c16336 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TelefonoTipo.php @@ -0,0 +1,122 @@ +telefonoCodigoAreas = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return TelefonoTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add telefonoCodigoAreas + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoAreas + * @return TelefonoTipo + */ + public function addTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoAreas) + { + $this->telefonoCodigoAreas[] = $telefonoCodigoAreas; + + return $this; + } + + /** + * Remove telefonoCodigoAreas + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoAreas + */ + public function removeTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoAreas) + { + $this->telefonoCodigoAreas->removeElement($telefonoCodigoAreas); + } + + /** + * Get telefonoCodigoAreas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getTelefonoCodigoAreas() + { + return $this->telefonoCodigoAreas; + } + + public function __toString() { + return $this->getDescripcion(); + } +} diff --git a/src/UBV/PracticaBundle/Entity/TelefonoTipoRepository.php b/src/UBV/PracticaBundle/Entity/TelefonoTipoRepository.php new file mode 100644 index 0000000..236171c --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TelefonoTipoRepository.php @@ -0,0 +1,15 @@ +ambienteEspacios = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return TipoEspacio + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add ambienteEspacios + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios + * @return TipoEspacio + */ + public function addAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) + { + $this->ambienteEspacios[] = $ambienteEspacios; + + return $this; + } + + /** + * Remove ambienteEspacios + * + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios + */ + public function removeAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) + { + $this->ambienteEspacios->removeElement($ambienteEspacios); + } + + /** + * Get ambienteEspacios + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAmbienteEspacios() + { + return $this->ambienteEspacios; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TipoEspacioRepository.php b/src/UBV/PracticaBundle/Entity/TipoEspacioRepository.php new file mode 100644 index 0000000..1c920cf --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TipoEspacioRepository.php @@ -0,0 +1,15 @@ +mallaCurricularDetalles = new ArrayCollection(); + $this->requisitoGrados = new ArrayCollection(); + $this->seccions = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Tramo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Tramo + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + * @return Tramo + */ + public function addMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles[] = $mallaCurricularDetalles; + + return $this; + } + + /** + * Remove mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + */ + public function removeMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles->removeElement($mallaCurricularDetalles); + } + + /** + * Get mallaCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurricularDetalles() + { + return $this->mallaCurricularDetalles; + } + + /** + * Add requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + * @return Tramo + */ + public function addRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados[] = $requisitoGrados; + + return $this; + } + + /** + * Remove requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + */ + public function removeRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados->removeElement($requisitoGrados); + } + + /** + * Get requisitoGrados + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoGrados() + { + return $this->requisitoGrados; + } + + /** + * Add seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + * @return Tramo + */ + public function addSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions[] = $seccions; + + return $this; + } + + /** + * Remove seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + */ + public function removeSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions->removeElement($seccions); + } + + /** + * Get seccions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getSeccions() + { + return $this->seccions; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TramoRepository.php b/src/UBV/PracticaBundle/Entity/TramoRepository.php new file mode 100644 index 0000000..ae8680a --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TramoRepository.php @@ -0,0 +1,15 @@ +mallaCurricularDetalles = new ArrayCollection(); + $this->requisitoGrados = new ArrayCollection(); + $this->seccions = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Trayecto + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Trayecto + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + * @return Trayecto + */ + public function addMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles[] = $mallaCurricularDetalles; + + return $this; + } + + /** + * Remove mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + */ + public function removeMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles->removeElement($mallaCurricularDetalles); + } + + /** + * Get mallaCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurricularDetalles() + { + return $this->mallaCurricularDetalles; + } + + /** + * Add requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + * @return Trayecto + */ + public function addRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados[] = $requisitoGrados; + + return $this; + } + + /** + * Remove requisitoGrados + * + * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados + */ + public function removeRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) + { + $this->requisitoGrados->removeElement($requisitoGrados); + } + + /** + * Get requisitoGrados + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getRequisitoGrados() + { + return $this->requisitoGrados; + } + + /** + * Add seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + * @return Trayecto + */ + public function addSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions[] = $seccions; + + return $this; + } + + /** + * Remove seccions + * + * @param \UBV\SurUbvBundle\Entity\Seccion $seccions + */ + public function removeSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccions) + { + $this->seccions->removeElement($seccions); + } + + /** + * Get seccions + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getSeccions() + { + return $this->seccions; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TrayectoRepository.php b/src/UBV/PracticaBundle/Entity/TrayectoRepository.php new file mode 100644 index 0000000..9dd12cb --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TrayectoRepository.php @@ -0,0 +1,15 @@ +aldeaMallaCurriculas = new ArrayCollection(); + $this->estudianteDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Turno + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param string $codigo + * @return Turno + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return string + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + * @return Turno + */ + public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas; + + return $this; + } + + /** + * Remove aldeaMallaCurriculas + * + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas + */ + public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) + { + $this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas); + } + + /** + * Get aldeaMallaCurriculas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAldeaMallaCurriculas() + { + return $this->aldeaMallaCurriculas; + } + + /** + * Add estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + * @return Turno + */ + public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles[] = $estudianteDetalles; + + return $this; + } + + /** + * Remove estudianteDetalles + * + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles + */ + public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) + { + $this->estudianteDetalles->removeElement($estudianteDetalles); + } + + /** + * Get estudianteDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getEstudianteDetalles() + { + return $this->estudianteDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/TurnoRepository.php b/src/UBV/PracticaBundle/Entity/TurnoRepository.php new file mode 100644 index 0000000..d7192aa --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/TurnoRepository.php @@ -0,0 +1,15 @@ +cuentaBancarias = new ArrayCollection(); + $this->personalAdministrativos = new ArrayCollection(); + $this->unidadAdministrativas = new ArrayCollection(); + $this->unidadAdministrativaTelefonos = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'nivel', 'padre_id', 'aldea_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return UnidadAdministrativa + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set nivel + * + * @param integer $nivel + * @return UnidadAdministrativa + */ + public function setNivel($nivel) + { + $this->nivel = $nivel; + + return $this; + } + + /** + * Get nivel + * + * @return integer + */ + public function getNivel() + { + return $this->nivel; + } + + /** + * Add cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + * @return UnidadAdministrativa + */ + public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias[] = $cuentaBancarias; + + return $this; + } + + /** + * Remove cuentaBancarias + * + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias + */ + public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) + { + $this->cuentaBancarias->removeElement($cuentaBancarias); + } + + /** + * Get cuentaBancarias + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getCuentaBancarias() + { + return $this->cuentaBancarias; + } + + /** + * Add personalAdministrativos + * + * @param \UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos + * @return UnidadAdministrativa + */ + public function addPersonalAdministrativo(\UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos) + { + $this->personalAdministrativos[] = $personalAdministrativos; + + return $this; + } + + /** + * Remove personalAdministrativos + * + * @param \UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos + */ + public function removePersonalAdministrativo(\UBV\SurUbvBundle\Entity\PersonalAdministrativo $personalAdministrativos) + { + $this->personalAdministrativos->removeElement($personalAdministrativos); + } + + /** + * Get personalAdministrativos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getPersonalAdministrativos() + { + return $this->personalAdministrativos; + } + + /** + * Add unidadAdministrativas + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas + * @return UnidadAdministrativa + */ + public function addUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) + { + $this->unidadAdministrativas[] = $unidadAdministrativas; + + return $this; + } + + /** + * Remove unidadAdministrativas + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas + */ + public function removeUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) + { + $this->unidadAdministrativas->removeElement($unidadAdministrativas); + } + + /** + * Get unidadAdministrativas + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadAdministrativas() + { + return $this->unidadAdministrativas; + } + + /** + * Add unidadAdministrativaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos + * @return UnidadAdministrativa + */ + public function addUnidadAdministrativaTelefono(\UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos) + { + $this->unidadAdministrativaTelefonos[] = $unidadAdministrativaTelefonos; + + return $this; + } + + /** + * Remove unidadAdministrativaTelefonos + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos + */ + public function removeUnidadAdministrativaTelefono(\UBV\SurUbvBundle\Entity\UnidadAdministrativaTelefono $unidadAdministrativaTelefonos) + { + $this->unidadAdministrativaTelefonos->removeElement($unidadAdministrativaTelefonos); + } + + /** + * Get unidadAdministrativaTelefonos + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadAdministrativaTelefonos() + { + return $this->unidadAdministrativaTelefonos; + } + + /** + * Set unidadAdministrativa + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa + * @return UnidadAdministrativa + */ + public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa = null) + { + $this->unidadAdministrativa = $unidadAdministrativa; + + return $this; + } + + /** + * Get unidadAdministrativa + * + * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa + */ + public function getUnidadAdministrativa() + { + return $this->unidadAdministrativa; + } + + /** + * Set aldea + * + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea + * @return UnidadAdministrativa + */ + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) + { + $this->aldea = $aldea; + + return $this; + } + + /** + * Get aldea + * + * @return \UBV\SurUbvBundle\Entity\Aldea + */ + public function getAldea() + { + return $this->aldea; + } + + public function __toString() { + return $this->descripcion; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadAdministrativaRepository.php b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaRepository.php new file mode 100644 index 0000000..cf5a4dc --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaRepository.php @@ -0,0 +1,34 @@ +getEntityManager(); + + //die(dump($pais_id)); + $result = $em->createQueryBuilder(); + + $dql = $result -> select ('unidadAdministrativa') + ->from('UBVSurUbvBundle:UnidadAdministrativa', 'unidadAdministrativa') + ->Join('unidadAdministrativa.aldea', 'aldea', 'aldea.id = unidadAdministrativa.aldea_id') + ->where('aldea.id = :aldea_id') + ->setParameter('aldea_id',$aldea_id) + ->getQuery() + ->getResult(Query::HYDRATE_ARRAY); + return $dql; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefono.php b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefono.php new file mode 100644 index 0000000..22f6feb --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefono.php @@ -0,0 +1,127 @@ +id; + } + + /** + * Set descripcion + * + * @param integer $descripcion + * @return UnidadAdministrativaTelefono + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return integer + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set unidadAdministrativa + * + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa + * @return UnidadAdministrativaTelefono + */ + public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa) + { + $this->unidadAdministrativa = $unidadAdministrativa; + + return $this; + } + + /** + * Get unidadAdministrativa + * + * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa + */ + public function getUnidadAdministrativa() + { + return $this->unidadAdministrativa; + } + + /** + * Set telefonoCodigoArea + * + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea + * @return UnidadAdministrativaTelefono + */ + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) + { + $this->telefonoCodigoArea = $telefonoCodigoArea; + + return $this; + } + + /** + * Get telefonoCodigoArea + * + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea + */ + public function getTelefonoCodigoArea() + { + return $this->telefonoCodigoArea; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefonoRepository.php b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefonoRepository.php new file mode 100644 index 0000000..f501c01 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadAdministrativaTelefonoRepository.php @@ -0,0 +1,15 @@ +unidadCurricularDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion', 'codigo'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return UnidadCurricular + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param boolean $codigo + * @return UnidadCurricular + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return boolean + */ + public function getCodigo() + { + return $this->codigo; + } + + /** + * Add unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + * @return UnidadCurricular + */ + public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; + + return $this; + } + + /** + * Remove unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + */ + public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); + } + + /** + * Get unidadCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadCurricularDetalles() + { + return $this->unidadCurricularDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalle.php b/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalle.php new file mode 100644 index 0000000..3aba558 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalle.php @@ -0,0 +1,282 @@ +mallaCurricularDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'num_horas_aula', 'num_horas_lab', 'unidades_credito', 'unidad_curricular_id', 'unidad_curricular_tipo_id', 'eje_formacion_id', 'frecuencia_id'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set num_horas_aula + * + * @param integer $numHorasAula + * @return UnidadCurricularDetalle + */ + public function setNumHorasAula($numHorasAula) + { + $this->num_horas_aula = $numHorasAula; + + return $this; + } + + /** + * Get num_horas_aula + * + * @return integer + */ + public function getNumHorasAula() + { + return $this->num_horas_aula; + } + + /** + * Set num_horas_lab + * + * @param integer $numHorasLab + * @return UnidadCurricularDetalle + */ + public function setNumHorasLab($numHorasLab) + { + $this->num_horas_lab = $numHorasLab; + + return $this; + } + + /** + * Get num_horas_lab + * + * @return integer + */ + public function getNumHorasLab() + { + return $this->num_horas_lab; + } + + /** + * Set unidades_credito + * + * @param integer $unidadesCredito + * @return UnidadCurricularDetalle + */ + public function setUnidadesCredito($unidadesCredito) + { + $this->unidades_credito = $unidadesCredito; + + return $this; + } + + /** + * Get unidades_credito + * + * @return integer + */ + public function getUnidadesCredito() + { + return $this->unidades_credito; + } + + /** + * Add mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + * @return UnidadCurricularDetalle + */ + public function addMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles[] = $mallaCurricularDetalles; + + return $this; + } + + /** + * Remove mallaCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles + */ + public function removeMallaCurricularDetalle(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalles) + { + $this->mallaCurricularDetalles->removeElement($mallaCurricularDetalles); + } + + /** + * Get mallaCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getMallaCurricularDetalles() + { + return $this->mallaCurricularDetalles; + } + + /** + * Set unidadCurricular + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricular $unidadCurricular + * @return UnidadCurricularDetalle + */ + public function setUnidadCurricular(\UBV\SurUbvBundle\Entity\UnidadCurricular $unidadCurricular) + { + $this->unidadCurricular = $unidadCurricular; + + return $this; + } + + /** + * Get unidadCurricular + * + * @return \UBV\SurUbvBundle\Entity\UnidadCurricular + */ + public function getUnidadCurricular() + { + return $this->unidadCurricular; + } + + /** + * Set unidadCurricularTipo + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularTipo $unidadCurricularTipo + * @return UnidadCurricularDetalle + */ + public function setUnidadCurricularTipo(\UBV\SurUbvBundle\Entity\UnidadCurricularTipo $unidadCurricularTipo) + { + $this->unidadCurricularTipo = $unidadCurricularTipo; + + return $this; + } + + /** + * Get unidadCurricularTipo + * + * @return \UBV\SurUbvBundle\Entity\UnidadCurricularTipo + */ + public function getUnidadCurricularTipo() + { + return $this->unidadCurricularTipo; + } + + /** + * Set ejeFormacion + * + * @param \UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion + * @return UnidadCurricularDetalle + */ + public function setEjeFormacion(\UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion) + { + $this->ejeFormacion = $ejeFormacion; + + return $this; + } + + /** + * Get ejeFormacion + * + * @return \UBV\SurUbvBundle\Entity\EjeFormacion + */ + public function getEjeFormacion() + { + return $this->ejeFormacion; + } + + /** + * Set frecuencia + * + * @param \UBV\SurUbvBundle\Entity\Frecuencia $frecuencia + * @return UnidadCurricularDetalle + */ + public function setFrecuencia(\UBV\SurUbvBundle\Entity\Frecuencia $frecuencia) + { + $this->frecuencia = $frecuencia; + + return $this; + } + + /** + * Get frecuencia + * + * @return \UBV\SurUbvBundle\Entity\Frecuencia + */ + public function getFrecuencia() + { + return $this->frecuencia; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalleRepository.php b/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalleRepository.php new file mode 100644 index 0000000..78155ce --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadCurricularDetalleRepository.php @@ -0,0 +1,15 @@ +unidadCurricularDetalles = new ArrayCollection(); + } + + public function __sleep() + { + return array('id', 'descripcion'); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return UnidadCurricularTipo + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Add unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + * @return UnidadCurricularTipo + */ + public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; + + return $this; + } + + /** + * Remove unidadCurricularDetalles + * + * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles + */ + public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) + { + $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); + } + + /** + * Get unidadCurricularDetalles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUnidadCurricularDetalles() + { + return $this->unidadCurricularDetalles; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadCurricularTipoRepository.php b/src/UBV/PracticaBundle/Entity/UnidadCurricularTipoRepository.php new file mode 100644 index 0000000..4db7523 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadCurricularTipoRepository.php @@ -0,0 +1,15 @@ +id; + } + + /** + * Set descripcion + * + * @param float $descripcion + * @return UnidadTributaria + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return float + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set fecha_registro + * + * @param \DateTime $fechaRegistro + * @return UnidadTributaria + */ + public function setFechaRegistro($fechaRegistro) + { + $this->fecha_registro = $fechaRegistro; + + return $this; + } + + /** + * Get fecha_registro + * + * @return \DateTime + */ + public function getFechaRegistro() + { + return $this->fecha_registro; + } + + /** + * Set estatus + * + * @param boolean $estatus + * @return UnidadTributaria + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return boolean + */ + public function getEstatus() + { + return $this->estatus; + } +} diff --git a/src/UBV/PracticaBundle/Entity/UnidadTributariaRepository.php b/src/UBV/PracticaBundle/Entity/UnidadTributariaRepository.php new file mode 100644 index 0000000..69742d6 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/UnidadTributariaRepository.php @@ -0,0 +1,15 @@ +request('GET', '/'); + + $this->assertContains('Hello World', $client->getResponse()->getContent()); + } +} diff --git a/web/.htaccess b/web/.htaccess new file mode 100644 index 0000000..207f78e --- /dev/null +++ b/web/.htaccess @@ -0,0 +1,68 @@ +# Use the front controller as index file. It serves as a fallback solution when +# every other rewrite/redirect fails (e.g. in an aliased environment without +# mod_rewrite). Additionally, this reduces the matching process for the +# start page (path "/") because otherwise Apache will apply the rewriting rules +# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). +DirectoryIndex app.php + +# By default, Apache does not evaluate symbolic links if you did not enable this +# feature in your server configuration. Uncomment the following line if you +# install assets as symlinks or if you experience problems related to symlinks +# when compiling LESS/Sass/CoffeScript assets. +# Options FollowSymlinks + +# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve +# to the front controller "/app.php" but be rewritten to "/app.php/app". + + Options -MultiViews + + + + RewriteEngine On + + # Determine the RewriteBase automatically and set it as environment variable. + # If you are using Apache aliases to do mass virtual hosting or installed the + # project in a subdirectory, the base path will be prepended to allow proper + # resolution of the app.php file and to redirect to the correct URI. It will + # work in environments without path prefix as well, providing a safe, one-size + # fits all solution. But as you do not need it in this case, you can comment + # the following 2 lines to eliminate the overhead. + RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ + RewriteRule ^(.*) - [E=BASE:%1] + + # Sets the HTTP_AUTHORIZATION header removed by apache + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect to URI without front controller to prevent duplicate content + # (with and without `/app.php`). Only do this redirect on the initial + # rewrite by Apache and not on subsequent cycles. Otherwise we would get an + # endless redirect loop (request -> rewrite to front controller -> + # redirect -> request -> ...). + # So in case you get a "too many redirects" error or you always get redirected + # to the start page because your Apache does not expose the REDIRECT_STATUS + # environment variable, you have 2 choices: + # - disable this feature by commenting the following 2 lines or + # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the + # following RewriteCond (best solution) + RewriteCond %{ENV:REDIRECT_STATUS} ^$ + RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] + + # If the requested filename exists, simply serve it. + # We only want to let Apache serve files and not directories. + RewriteCond %{REQUEST_FILENAME} -f + RewriteRule .? - [L] + + # Rewrite all other queries to the front controller. + RewriteRule .? %{ENV:BASE}/app.php [L] + + + + + # When mod_rewrite is not available, we instruct a temporary redirect of + # the start page to the front controller explicitly so that the website + # and the generated links can still be used. + RedirectMatch 302 ^/$ /app.php/ + # RedirectTemp cannot be used instead + + diff --git a/web/app.php b/web/app.php new file mode 100644 index 0000000..d3a3681 --- /dev/null +++ b/web/app.php @@ -0,0 +1,17 @@ +loadClassCache(); +//$kernel = new AppCache($kernel); + +// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter +//Request::enableHttpMethodParameterOverride(); +$request = Request::createFromGlobals(); +$response = $kernel->handle($request); +$response->send(); +$kernel->terminate($request, $response); diff --git a/web/app_dev.php b/web/app_dev.php new file mode 100644 index 0000000..c4ff084 --- /dev/null +++ b/web/app_dev.php @@ -0,0 +1,29 @@ +loadClassCache(); +$request = Request::createFromGlobals(); +$response = $kernel->handle($request); +$response->send(); +$kernel->terminate($request, $response); diff --git a/web/apple-touch-icon.png b/web/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..6e6b6ce170b949de35108974b6b05ecc90cc5f5d GIT binary patch literal 2092 zcmV+{2-Ek8P)&z+r}5D*Y;ZEcQ@j;*b&9UUE8TU$s-NPd2Pm(2P~0000DbW%=J z0FX}%II8UaA!Wnbel$ITMF0Q?Zb?KzRCocr)74>sF$e_UAELfhzZr<_mum zxrzA$6;n1T|3uYd)S!+N(+=;U51ev6SwJoj)K}3R9HCE%Ezo3T0|KV;=S^$}*Zkuq z`UIUlf1nEt^U)m0-9>?iWBPLBUiw$G$*Rc*-51d8O4lv|QC;;5oOER~R>{ zvEl#!@*RYn7%dyKJXW`-X|P745xJpt&b31=OAz4gitPe+mf? zpjHTeZ&@DSCq*6v;92;d5GXXEAWS#apjs2^?9818L4b+nmb}9gZ2*j`l0W~y9EWae zebeUZNM#U`#PPWM2zu`Psm`OFjDnfkf>pR-BC+@>KvK@d$i4B73BT^BfmRBD3Fpnq zt&QNR4@D6Q@z2k%%VAXwLv`?Q?F{rr#IZgfKfY!Qsy2Gtt(IeS;Uf*z20**7ER$bp z#cG~R?m1c^1uQ)1!dG_5U*}t~ofLLqeAo{pj=s9$TFXTk&8F|rllQ$fn+K^sOu!ut zhOzhasWOy{;8U+pZdgCsMN8K^?4BnGuavC?kHk_L$}7SGB6@zr!)#w#8w?LXg{FPJ z!UCEnb)gJJZ!{}tsLgl~1p0kg4A4=+F_l2U4!K4W>hcm-lB1#H1Ud?29niSCt}MNP z5_&PJ73_OadX(2BzCzh(snTX%)kr~6V63Y>JJG$b@vq`cV3VS?KKrM8p)q697_!0u>+i$unT0 z$#4yxV@WMxjn>7!q1CB9F`jJ2#V-g zu@#x}6uRrU^`ewuo}jB|V1rIbhW1SoJwov-Sd&j$+h zoV0Pp_`AHY&Vb4xEP@6v9;or)^}OHJ5`yVo1R-1Z0-KZ+y*M6zcDWV7 z*l2BR!q7H+sZ6;xJDu0z#A^tSdm)0NX$vfvq;p<0@ri!sTbsGb+O6uOSe#Q8XDX z9D;Rtt>{(92v{qx#J|V>VBU(WckYxAA!FiTSgGkpd+{rm#}R+ph85V05ydUSxLTbC zBR_Z{ethB+doU3Nf-RwcnNdCiUMerdgT3OEM(Ar$d;om*ED2&RZPyyH2Cr6 z|2kBQrh8VdS_kFRDET3`(d^GI(tvm8&wZMk6aces06J-Zl+;v6(p6oV3Xj4)6xXl0 zQp+qigkhJqPVb#u^8Z&}L)&+m1T%*|fN73}rHGNyg;pv)#&r{Y z-?nWpwv`?pS8xo$7lS*&7*R5mpmSQ;fYIxnBxnAkYeG{a#1r1ke`%AG z5VMHY-yreZQD86yY=U0575S(<7fl0K65=JAZJqp_3>fK1!qGnlpelMr>J=}_lpRE> z#4BRiFwUV?qX`v+9AAG45|7t)p3Yw-&JwT|0UrhJDm^=SoYp(uY|-duEy3RFFpe)a zLDp=atW&V>I?y`TVs0L80A^jqMOuU`Q8#+5+zU_|#y3eR0Jt_0fbIT??+2)+ zkAwUJdZ+<~&@F#yN)#uPA%&jeFe3BZJ)L6-j$TBC4o0yLC`Z9nwkunc?ME`U2Y^qC z{z8EWz!OR^2g4G@=v4#~&>6{_SQH4ryi(M8wF_wMgDcPg)e)II1d5~3RY?DJCs$yQ z4|xcaBr^|k?U_iRIk9J?!E1>vGZEmJ zHB>Q-JeGDM2>Hf7p1tqGuD6bDaSR>a6~G;|<#9|*`EC7x^t_dxEw3^B#>V~D@#(&KA*0000getFailedRequirements(); +$minorProblems = $symfonyRequirements->getFailedRecommendations(); +$hasMajorProblems = (bool) count($majorProblems); +$hasMinorProblems = (bool) count($minorProblems); + +?> + + + + + + Symfony Configuration + + + + +
+
+ + + +
+ +
+
+
+

Welcome!

+

Welcome to your new Symfony project.

+

+ This script will guide you through the basic configuration of your project. + You can also do the same by editing the ‘app/config/parameters.yml’ file directly. +

+ + +

Major problems

+

Major problems have been detected and must be fixed before continuing:

+
    + +
  1. getTestMessage() ?> +

    getHelpHtml() ?>

    +
  2. + +
+ + + +

Recommendations

+

+ Additionally, toTo enhance your Symfony experience, + it’s recommended that you fix the following: +

+
    + +
  1. getTestMessage() ?> +

    getHelpHtml() ?>

    +
  2. + +
+ + + hasPhpIniConfigIssue()): ?> +

* + getPhpIniConfigPath()): ?> + Changes to the php.ini file must be done in "getPhpIniConfigPath() ?>". + + To change settings, create a "php.ini". + +

+ + + +

Your configuration looks good to run Symfony.

+ + + +
+
+
+
Symfony Standard Edition
+
+ + diff --git a/web/favicon.ico b/web/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..479f7f50f404ada1e42c536097521d19f2c22f35 GIT binary patch literal 6518 zcmeHLTWD5E5Kuy5M>-BgCK}6B8uRHx|%3>L5P|~O|ntQ zD!!Jkw41=CfUf}7Y>i>k%K=@zd-rz03PXkrQJkKhPTU1316WJ0t;)^K zbyu!jaThLJh>sjO(gCIvVc@`l?8mUf@?VxRKb$qO($xL+ALa-_~@WM&XcK|z6}QYkrb;DB&Ee*AdFuz@nj!@bZS z<->;$=Qy4}f4ng zT`R9&zg9W$g*fMA(V|7V4!nwC1N}icH$iJ+|IndBsoL6Fw{YP?U32~VbvbzOp!Rp| z+QoH3{j>x9l=r2cuRkN**Q-~rq^qk-7B5~b%asw z{R`YNd-iNcpPfE^TKOs}D%6J$A3l`g;$nI7X{UL zSHSyawhQh!&z`LUKzZ$;*}Tik%OlNg-n`jWRaLp_>grTuW24<4-nr1Qk5d>Z|IndB zV}Rb@F=NJ1UdNOvQ{rXImgzjkRbgR-$NZsHK#uLv`8VUnjvZ_3IG5CGYYkHp{Xw7d zUNu1;&*)z`<8uGDG1Qh^W3>M}%s80~_!^L=J#-L5|3XUxZ>I4h7WG4aK41rYe;RNb z{dzzh`=oIWFb~idV2v^;>#wwo1oIc@?}q#)V7o6pV(@W}vHkDBqXE{EGL7~r9QKUK z!ohxnM<=ldqlbHr`L~$+8^Bspw$YMU=aHXyQq|en z*|tyB2O48DW47~gBD^Kg$xGb?+Qc=CMT8&G9|BsT)cQO>~+M55vtF}6w__k_%yb`&ZqF(P}LYkrZe14%vWR1L8kIAS+Ydq zJoUeL@j_))R#q~1xcm3-Q-{(94H^{swD}W2KC|H*`qsi5gZ)L&PrevAT?puFo}m7^ zx;pWCdq3z6r($w*G)-0BO9hyw_IKB<1M-knc#-^QRNgg!KSvzK%(* zN%nO;_$&|q8-2#fZ@3n^^=%`+hBd6wE?v4LckbK~)_qHtF10y#>eMOqKlR_ce~)z5 z8j_Kb@n>hCdZ3T?FjklNeusbaS`$8c^hot?*|J4gyToyn3u|nG?j6v5mbL>r;6L>d>JgQV+Aqk!e%06S-n|p#BF8%R*Y;nP*5$gS zct^3WWsHWbPx(OSO&2kAGmqV6AMdTx*UIwr=~LDJ;K2ix#WQ*K>{;0Fwr$&#{`T$L zKtmm+G`pic*gziI!FxvinnQt=#(iuS;n zw{G218frV4IB_EDeqBp>9(1010jeLk4!|59XvudEx^Q2V-`UxzxaLNU$&<5Z&nk`c zO-)UK&UFOTcYmPyIn!Tn{s*1;RBc3#)p*9Y_U6qS)8TjqT<^cbWb4+gT9;El@`Ag1 z^{QOHd|B;+kCZp@p8l|Z`X3PPpXs-p!tayTwpP_oJLb-vt1@TJnx%O4>eaz7{I=jb zS+{PTFi){I-@kvq@^L?Y-^8@Tax-hDk|Yg%>C>l=*{Xi!{t)W}jr^$Hh3AjD9n;;h zxU{r1=;8NDYiny5`+DIc{gA_YZGqpn#s%spSloq=H3w2&<%;kFa|Q#KYsjJ^~{?$ zPkG2k8hyZ+Wo!8ctWTV{*LL@sKxa+M{8I)*{jtYk?eESm(7`9urcKlF#*G_Qf7|;u zN!o?)64|?VuS}gfRr&lGs1E4d4H?$PV*FnWXan=ZM|x<3|5j2u>Le9aR(|hp! z58sEiK5od38#hSfniT&pfUaLK{sO?JH2}_LBk1OXAOrK-$Gr6I+gHD}jYiCGZ_B&< zrfqL;=eyK39P?b7d~CoO#Jt;(Rfx50)SaxqE@4a?v{nKRcJS`NK8@?%PWH*G`cW@v zpE-lI5@Qp;&-snLY11Z^$r>K~tnsXwZmR`HKqm9D@&i-9%1z)TE#w*Aan@mejjUh4 zUf+fvxBFWDCyZI+vYF2A(TBR6cfoAnUEzJ84Q5Bs0h;!~ub8<%QG<}5Yh#~RsCx{6 z&Fa4H(T887(+?K`rk8dk-=@(6PVn-cbRvev^tb!j=}uC<33gAlnE%;N;oxJW2uoNyrWR#`=%?o~Id@HEm8peo|(F z++&w_Gih%Y#@_;1x1NFgd%%wY{QkZJU>++0u%2X1YmGAOo*V5m{_KIz9{B8m=r_v| BFLeL_ literal 0 HcmV?d00001 diff --git a/web/robots.txt b/web/robots.txt new file mode 100644 index 0000000..4665fca --- /dev/null +++ b/web/robots.txt @@ -0,0 +1,5 @@ +# www.robotstxt.org/ +# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 + +User-agent: * +Disallow: -- 2.0.0