Commit 898a57433cdd623702603382c08c60984804b86b
1 parent
7a1787c1ad
Exists in
master
creada la entidad de los objivos nacionales amarrados con los historicos
Showing
2 changed files
with
276 additions
and
0 deletions
Show diff stats
src/AppBundle/Entity/PlanHistoricoNacional.php
| ... | ... | @@ -0,0 +1,140 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace AppBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * PlanHistoricoNacional | |
| 9 | + * | |
| 10 | + * @ORM\Table(name="plan_historico_nacional", uniqueConstraints={@ORM\UniqueConstraint(name="uq_nacional", columns={"numero"})}, indexes={@ORM\Index(name="fki_historico_nacional", columns={"id_plan_objetivo_historico"})}) | |
| 11 | + * @ORM\Entity | |
| 12 | + */ | |
| 13 | +class PlanHistoricoNacional | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @var string | |
| 17 | + * | |
| 18 | + * @ORM\Column(name="nombre", type="string", length=100, nullable=false, options={"comment" = "Nombre del plan_historico_nacional"}) | |
| 19 | + */ | |
| 20 | + private $nombre; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * @var integer | |
| 24 | + * | |
| 25 | + * @ORM\Column(name="numero", type="integer", nullable=false, options={"comment" = "numero del objetivo nacional"}) | |
| 26 | + */ | |
| 27 | + private $numero; | |
| 28 | + | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * @var integer | |
| 32 | + * | |
| 33 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del plan_historico_nacional"}) | |
| 34 | + * @ORM\Id | |
| 35 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 36 | + * @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1) | |
| 37 | + */ | |
| 38 | + private $id; | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * @var \AppBundle\Entity\PlanObjetivoHistorico | |
| 42 | + * | |
| 43 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PlanObjetivoHistorico") | |
| 44 | + * @ORM\JoinColumns({ | |
| 45 | + * @ORM\JoinColumn(name="id_plan_objetivo_historico", referencedColumnName="id", nullable=false) | |
| 46 | + * }) | |
| 47 | + */ | |
| 48 | + private $idPlanObjetivoHistorico; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * Set nombre | |
| 52 | + * | |
| 53 | + * @param string $nombre | |
| 54 | + * @return PlanHistoricoNacional | |
| 55 | + */ | |
| 56 | + public function setNombre($nombre) | |
| 57 | + { | |
| 58 | + $this->nombre = $nombre; | |
| 59 | + | |
| 60 | + return $this; | |
| 61 | + } | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * Get nombre | |
| 65 | + * | |
| 66 | + * @return string | |
| 67 | + */ | |
| 68 | + public function getNombre() | |
| 69 | + { | |
| 70 | + return $this->nombre; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Set numero | |
| 75 | + * | |
| 76 | + * @param integer $numero | |
| 77 | + * @return PlanHistoricoNacional | |
| 78 | + */ | |
| 79 | + public function setNumero($numero) | |
| 80 | + { | |
| 81 | + $this->numero = $numero; | |
| 82 | + | |
| 83 | + return $this; | |
| 84 | + } | |
| 85 | + | |
| 86 | + /** | |
| 87 | + * Get numero | |
| 88 | + * | |
| 89 | + * @return integer | |
| 90 | + */ | |
| 91 | + public function getNumero() | |
| 92 | + { | |
| 93 | + return $this->numero; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * Get id | |
| 98 | + * | |
| 99 | + * @return integer | |
| 100 | + */ | |
| 101 | + public function getId() | |
| 102 | + { | |
| 103 | + return $this->id; | |
| 104 | + } | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Set idPlanObjetivoHistorico | |
| 108 | + * | |
| 109 | + * @param \AppBundle\Entity\PlanObjetivoHistorico $idPlanObjetivoHistorico | |
| 110 | + * @return PlanHistoricoNacional | |
| 111 | + */ | |
| 112 | + public function setIdPlanObjetivoHistorico(\AppBundle\Entity\PlanObjetivoHistorico $idPlanObjetivoHistorico) | |
| 113 | + { | |
| 114 | + $this->idPlanObjetivoHistorico = $idPlanObjetivoHistorico; | |
| 115 | + | |
| 116 | + return $this; | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Get idPlanObjetivoHistorico | |
| 121 | + * | |
| 122 | + * @return \AppBundle\Entity\PlanObjetivoHistorico | |
| 123 | + */ | |
| 124 | + public function getIdPlanObjetivoHistorico() | |
| 125 | + { | |
| 126 | + return $this->idPlanObjetivoHistorico; | |
| 127 | + } | |
| 128 | + | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get nombre | |
| 132 | + * | |
| 133 | + * @return string | |
| 134 | + */ | |
| 135 | + public function __toString() { | |
| 136 | + return $this->getNombre(); | |
| 137 | + } | |
| 138 | + | |
| 139 | + | |
| 140 | +} | ... | ... |
src/AppBundle/Entity/PlanHistoricoNacionalEstrategico.php
| ... | ... | @@ -0,0 +1,136 @@ |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Created by PhpStorm. | |
| 4 | + * User: ubv-cipee | |
| 5 | + * Date: 29/06/16 | |
| 6 | + * Time: 08:44 AM | |
| 7 | + */ | |
| 8 | + | |
| 9 | + | |
| 10 | +namespace AppBundle\Entity; | |
| 11 | + | |
| 12 | +use Doctrine\ORM\Mapping as ORM; | |
| 13 | + | |
| 14 | +/** | |
| 15 | + * Parroquia | |
| 16 | + * | |
| 17 | + * @ORM\Table(name="parroquia", uniqueConstraints={@ORM\UniqueConstraint(name="uq_parroquia", columns={"codigo"})}, indexes={@ORM\Index(name="fki_id_municipio_parroquia", columns={"id_municipio"})}) | |
| 18 | + * @ORM\Entity | |
| 19 | + */ | |
| 20 | +class Parroquia | |
| 21 | +{ | |
| 22 | + /** | |
| 23 | + * @var string | |
| 24 | + * | |
| 25 | + * @ORM\Column(name="nombre", type="string", length=40, nullable=false, options={"comment" = "nombre de parroquia"}) | |
| 26 | + */ | |
| 27 | + private $nombre; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @var string | |
| 31 | + * | |
| 32 | + * @ORM\Column(name="codigo", type="decimal", precision=6, scale=0, nullable=false, options={"comment" = "codigo parroquia"}) | |
| 33 | + */ | |
| 34 | + private $codigo; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * @var integer | |
| 38 | + * | |
| 39 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador de la parroquia"}) | |
| 40 | + * @ORM\Id | |
| 41 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 42 | + * @ORM\SequenceGenerator(sequenceName="parroquia_id_seq", allocationSize=1, initialValue=1) | |
| 43 | + */ | |
| 44 | + private $id; | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * @var \AppBundle\Entity\Municipio | |
| 48 | + * | |
| 49 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Municipio") | |
| 50 | + * @ORM\JoinColumns({ | |
| 51 | + * @ORM\JoinColumn(name="id_municipio", referencedColumnName="id", nullable=false) | |
| 52 | + * }) | |
| 53 | + */ | |
| 54 | + private $idMunicipio; | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * Set nombre | |
| 60 | + * | |
| 61 | + * @param string $nombre | |
| 62 | + * @return Parroquia | |
| 63 | + */ | |
| 64 | + public function setNombre($nombre) | |
| 65 | + { | |
| 66 | + $this->nombre = $nombre; | |
| 67 | + | |
| 68 | + return $this; | |
| 69 | + } | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * Get nombre | |
| 73 | + * | |
| 74 | + * @return string | |
| 75 | + */ | |
| 76 | + public function getNombre() | |
| 77 | + { | |
| 78 | + return $this->nombre; | |
| 79 | + } | |
| 80 | + | |
| 81 | + /** | |
| 82 | + * Set codigo | |
| 83 | + * | |
| 84 | + * @param string $codigo | |
| 85 | + * @return Parroquia | |
| 86 | + */ | |
| 87 | + public function setCodigo($codigo) | |
| 88 | + { | |
| 89 | + $this->codigo = $codigo; | |
| 90 | + | |
| 91 | + return $this; | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Get codigo | |
| 96 | + * | |
| 97 | + * @return string | |
| 98 | + */ | |
| 99 | + public function getCodigo() | |
| 100 | + { | |
| 101 | + return $this->codigo; | |
| 102 | + } | |
| 103 | + | |
| 104 | + /** | |
| 105 | + * Get id | |
| 106 | + * | |
| 107 | + * @return integer | |
| 108 | + */ | |
| 109 | + public function getId() | |
| 110 | + { | |
| 111 | + return $this->id; | |
| 112 | + } | |
| 113 | + | |
| 114 | + /** | |
| 115 | + * Set idMunicipio | |
| 116 | + * | |
| 117 | + * @param \AppBundle\Entity\Municipio $idMunicipio | |
| 118 | + * @return Parroquia | |
| 119 | + */ | |
| 120 | + public function setIdMunicipio(\AppBundle\Entity\Municipio $idMunicipio = null) | |
| 121 | + { | |
| 122 | + $this->idMunicipio = $idMunicipio; | |
| 123 | + | |
| 124 | + return $this; | |
| 125 | + } | |
| 126 | + | |
| 127 | + /** | |
| 128 | + * Get idMunicipio | |
| 129 | + * | |
| 130 | + * @return \AppBundle\Entity\Municipio | |
| 131 | + */ | |
| 132 | + public function getIdMunicipio() | |
| 133 | + { | |
| 134 | + return $this->idMunicipio; | |
| 135 | + } | |
| 136 | +} | ... | ... |