Commit 7a1787c1adf985501517ff2178e03881fc3b319a
1 parent
30a854d1e6
Exists in
master
creada la entidad de objetivo historico del plan de la patria
Showing
2 changed files
with
168 additions
and
0 deletions
Show diff stats
src/AppBundle/Entity/PlanObjetivoHistorico.php
@@ -0,0 +1,112 @@ | @@ -0,0 +1,112 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | + | ||
4 | +namespace AppBundle\Entity; | ||
5 | + | ||
6 | +use Doctrine\ORM\Mapping as ORM; | ||
7 | + | ||
8 | +/** | ||
9 | + * PlanObjetivoHistorico | ||
10 | + * | ||
11 | + * @ORM\Table(name="plan_objetivo_historico", uniqueConstraints={@ORM\UniqueConstraint(name="uq_numero", columns={"numero", "nombre"})}) | ||
12 | + * @ORM\Entity | ||
13 | + */ | ||
14 | +class PlanObjetivoHistorico | ||
15 | +{ | ||
16 | + /** | ||
17 | + * @var string | ||
18 | + * | ||
19 | + * @ORM\Column(name="nombre", type="string", length=50, nullable=false, options={"comment" = "nombre del plan_objetivo_historico"}) | ||
20 | + */ | ||
21 | + private $nombre; | ||
22 | + | ||
23 | + | ||
24 | + /** | ||
25 | + * @var integer | ||
26 | + * | ||
27 | + * @ORM\Column(name="numero", type="integer", nullable=false, options={"comment" = "numero del orden del gran Objetivo Histórico"}) | ||
28 | + */ | ||
29 | + private $numero; | ||
30 | + | ||
31 | + /** | ||
32 | + * @var integer | ||
33 | + * | ||
34 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del plan_objetivo_historico"}) | ||
35 | + * @ORM\Id | ||
36 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
37 | + * @ORM\SequenceGenerator(sequenceName="estado_id_seq", allocationSize=1, initialValue=1) | ||
38 | + */ | ||
39 | + private $id; | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + /** | ||
46 | + * Get nombre | ||
47 | + * | ||
48 | + * @return string | ||
49 | + */ | ||
50 | + public function __toString() | ||
51 | + { | ||
52 | + return $this->nombre; | ||
53 | + } | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Set nombre | ||
59 | + * | ||
60 | + * @param string $nombre | ||
61 | + * @return PlanObjetivoHistorico | ||
62 | + */ | ||
63 | + public function setNombre($nombre) | ||
64 | + { | ||
65 | + $this->nombre = $nombre; | ||
66 | + | ||
67 | + return $this; | ||
68 | + } | ||
69 | + | ||
70 | + /** | ||
71 | + * Get nombre | ||
72 | + * | ||
73 | + * @return string | ||
74 | + */ | ||
75 | + public function getNombre() | ||
76 | + { | ||
77 | + return $this->nombre; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Set numero | ||
82 | + * | ||
83 | + * @param integer $numero | ||
84 | + * @return PlanObjetivoHistorico | ||
85 | + */ | ||
86 | + public function setNumero($numero) | ||
87 | + { | ||
88 | + $this->numero = $numero; | ||
89 | + | ||
90 | + return $this; | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Get numero | ||
95 | + * | ||
96 | + * @return integer | ||
97 | + */ | ||
98 | + public function getNumero() | ||
99 | + { | ||
100 | + return $this->numero; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Get id | ||
105 | + * | ||
106 | + * @return integer | ||
107 | + */ | ||
108 | + public function getId() | ||
109 | + { | ||
110 | + return $this->id; | ||
111 | + } | ||
112 | +} |
src/AppBundle/Entity/PlanObjetivoHistorico.php~
@@ -0,0 +1,56 @@ | @@ -0,0 +1,56 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | + | ||
4 | +namespace AppBundle\Entity; | ||
5 | + | ||
6 | +use Doctrine\ORM\Mapping as ORM; | ||
7 | + | ||
8 | +/** | ||
9 | + * PlanObjetivoHistorico | ||
10 | + * | ||
11 | + * @ORM\Table(name="plan_objetivo_historico", uniqueConstraints={@ORM\UniqueConstraint(name="uq_numero", columns={"numero", "nombre"})}) | ||
12 | + * @ORM\Entity | ||
13 | + */ | ||
14 | +class PlanObjetivoHistorico | ||
15 | +{ | ||
16 | + /** | ||
17 | + * @var string | ||
18 | + * | ||
19 | + * @ORM\Column(name="nombre", type="string", length=50, nullable=false, options={"comment" = "nombre del plan_objetivo_historico"}) | ||
20 | + */ | ||
21 | + private $nombre; | ||
22 | + | ||
23 | + | ||
24 | + /** | ||
25 | + * @var integer | ||
26 | + * | ||
27 | + * @ORM\Column(name="numero", type="integer", nullable=false, options={"comment" = "numero del orden del gran Objetivo Histórico"}) | ||
28 | + */ | ||
29 | + private $numero; | ||
30 | + | ||
31 | + /** | ||
32 | + * @var integer | ||
33 | + * | ||
34 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del plan_objetivo_historico"}) | ||
35 | + * @ORM\Id | ||
36 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
37 | + * @ORM\SequenceGenerator(sequenceName="estado_id_seq", allocationSize=1, initialValue=1) | ||
38 | + */ | ||
39 | + private $id; | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + /** | ||
46 | + * Get nombre | ||
47 | + * | ||
48 | + * @return string | ||
49 | + */ | ||
50 | + public function __toString() | ||
51 | + { | ||
52 | + return $this->nombre; | ||
53 | + } | ||
54 | + | ||
55 | + | ||
56 | +} | ||
0 | \ No newline at end of file | 57 | \ No newline at end of file |