diff --git a/app/config/config.yml b/app/config/config.yml index d2770c9..d2f4669 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -39,7 +39,7 @@ twig: # Doctrine Configuration doctrine: dbal: - driver: pdo_mysql + driver: pdo_pgsql host: '%database_host%' port: '%database_port%' dbname: '%database_name%' diff --git a/src/UBV/PracticaBundle/Entity/Banco.php b/src/UBV/PracticaBundle/Entity/Banco.php new file mode 100644 index 0000000..f0ee2b8 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/Banco.php @@ -0,0 +1,97 @@ +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 integer $codigo + * + * @return Banco + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/EjeMunicipal.php b/src/UBV/PracticaBundle/Entity/EjeMunicipal.php new file mode 100644 index 0000000..b11bde3 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/EjeMunicipal.php @@ -0,0 +1,171 @@ +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/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/aldea.php b/src/UBV/PracticaBundle/Entity/aldea.php new file mode 100644 index 0000000..a7b3a08 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/aldea.php @@ -0,0 +1,159 @@ +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 codigoSucre + * + * @param integer $codigoSucre + * + * @return aldea + */ + public function setCodigoSucre($codigoSucre) + { + $this->codigoSucre = $codigoSucre; + + return $this; + } + + /** + * Get codigoSucre + * + * @return int + */ + public function getCodigoSucre() + { + return $this->codigoSucre; + } + + /** + * Set codigoAldea + * + * @param integer $codigoAldea + * + * @return aldea + */ + public function setCodigoAldea($codigoAldea) + { + $this->codigoAldea = $codigoAldea; + + return $this; + } + + /** + * Get codigoAldea + * + * @return int + */ + public function getCodigoAldea() + { + return $this->codigoAldea; + } + + /** + * Set estatus + * + * @param boolean $estatus + * + * @return aldea + */ + public function setEstatus($estatus) + { + $this->estatus = $estatus; + + return $this; + } + + /** + * Get estatus + * + * @return bool + */ + public function getEstatus() + { + return $this->estatus; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/ambiente.php b/src/UBV/PracticaBundle/Entity/ambiente.php new file mode 100644 index 0000000..a808325 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/ambiente.php @@ -0,0 +1,190 @@ +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 integer $codigo + * + * @return ambiente + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + 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 coordenadaUtmNorte + * + * @param integer $coordenadaUtmNorte + * + * @return ambiente + */ + public function setCoordenadaUtmNorte($coordenadaUtmNorte) + { + $this->coordenadaUtmNorte = $coordenadaUtmNorte; + + return $this; + } + + /** + * Get coordenadaUtmNorte + * + * @return int + */ + public function getCoordenadaUtmNorte() + { + return $this->coordenadaUtmNorte; + } + + /** + * Set coordenadaUtmOeste + * + * @param integer $coordenadaUtmOeste + * + * @return ambiente + */ + public function setCoordenadaUtmOeste($coordenadaUtmOeste) + { + $this->coordenadaUtmOeste = $coordenadaUtmOeste; + + return $this; + } + + /** + * Get coordenadaUtmOeste + * + * @return int + */ + public function getCoordenadaUtmOeste() + { + return $this->coordenadaUtmOeste; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/estado.php b/src/UBV/PracticaBundle/Entity/estado.php new file mode 100644 index 0000000..b31d702 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/estado.php @@ -0,0 +1,97 @@ +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 integer $codigo + * + * @return estado + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/estadoCivil.php b/src/UBV/PracticaBundle/Entity/estadoCivil.php new file mode 100644 index 0000000..cf39e73 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/estadoCivil.php @@ -0,0 +1,97 @@ +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; + } + + /** + * Set codigo + * + * @param integer $codigo + * + * @return estadoCivil + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/genero.php b/src/UBV/PracticaBundle/Entity/genero.php new file mode 100644 index 0000000..8ff7692 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/genero.php @@ -0,0 +1,97 @@ +id; + } + + /** + * Set descripcion + * + * @param string $descripcion + * + * @return genero + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Set codigo + * + * @param integer $codigo + * + * @return genero + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/municipio.php b/src/UBV/PracticaBundle/Entity/municipio.php new file mode 100644 index 0000000..a6d49a3 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/municipio.php @@ -0,0 +1,97 @@ +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; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/pais.php b/src/UBV/PracticaBundle/Entity/pais.php new file mode 100644 index 0000000..3a1f945 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/pais.php @@ -0,0 +1,97 @@ +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 integer $codigo + * + * @return pais + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/parroquia.php b/src/UBV/PracticaBundle/Entity/parroquia.php new file mode 100644 index 0000000..98cdd94 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/parroquia.php @@ -0,0 +1,97 @@ +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 integer $codigo + * + * @return parroquia + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Entity/seccion.php b/src/UBV/PracticaBundle/Entity/seccion.php new file mode 100644 index 0000000..8f2fd92 --- /dev/null +++ b/src/UBV/PracticaBundle/Entity/seccion.php @@ -0,0 +1,97 @@ +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; + } + + /** + * Set codigo + * + * @param integer $codigo + * + * @return seccion + */ + public function setCodigo($codigo) + { + $this->codigo = $codigo; + + return $this; + } + + /** + * Get codigo + * + * @return int + */ + public function getCodigo() + { + return $this->codigo; + } +} + diff --git a/src/UBV/PracticaBundle/Repository/BancoRepository.php b/src/UBV/PracticaBundle/Repository/BancoRepository.php new file mode 100644 index 0000000..7326ae3 --- /dev/null +++ b/src/UBV/PracticaBundle/Repository/BancoRepository.php @@ -0,0 +1,13 @@ +