RequerimientoProyecto.php
5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
namespace UBV\SurUbvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* UBV\SurUbvBundle\Entity\RequerimientoProyecto
*
* @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Repository\RequerimientoProyectoRepository")
* @ORM\Table(name="requerimiento_proyecto", indexes={@ORM\Index(name="fk_requerimiento_proyecto_proyecto_etapa1_idx", columns={"proyecto_etapa_id"}), @ORM\Index(name="fk_requerimiento_proyecto_aporte_tipo1_idx", columns={"aporte_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_requerimiento_proyecto_UNIQUE", columns={"id"})})
*/
class RequerimientoProyecto
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\SequenceGenerator(sequenceName="requerimiento_proyecto_id_seq", allocationSize=1, initialValue=1)
*/
protected $id;
/**
* @ORM\Column(type="string", length=45)
*/
protected $concepto;
/**
* @ORM\Column(type="integer")
*/
protected $cantidad;
/**
* @ORM\Column(type="string", length=45)
*/
protected $costo;
/**
* @ORM\Column(type="string", length=150)
*/
protected $descripcion;
/**
* @ORM\Column(type="string", length=200)
*/
protected $proposito;
/**
* @ORM\ManyToOne(targetEntity="ProyectoEtapa", inversedBy="requerimientoProyectos")
* @ORM\JoinColumn(name="proyecto_etapa_id", referencedColumnName="id", nullable=false)
*/
protected $proyectoEtapa;
/**
* @ORM\ManyToOne(targetEntity="AporteTipo", inversedBy="requerimientoProyectos")
* @ORM\JoinColumn(name="aporte_tipo_id", referencedColumnName="id", nullable=false)
*/
protected $aporteTipo;
public function __construct()
{
}
/**
* Set the value of id.
*
* @param integer $id
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get the value of id.
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set the value of concepto.
*
* @param string $concepto
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setConcepto($concepto)
{
$this->concepto = $concepto;
return $this;
}
/**
* Get the value of concepto.
*
* @return string
*/
public function getConcepto()
{
return $this->concepto;
}
/**
* Set the value of cantidad.
*
* @param integer $cantidad
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setCantidad($cantidad)
{
$this->cantidad = $cantidad;
return $this;
}
/**
* Get the value of cantidad.
*
* @return integer
*/
public function getCantidad()
{
return $this->cantidad;
}
/**
* Set the value of costo.
*
* @param string $costo
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setCosto($costo)
{
$this->costo = $costo;
return $this;
}
/**
* Get the value of costo.
*
* @return string
*/
public function getCosto()
{
return $this->costo;
}
/**
* Set the value of descripcion.
*
* @param string $descripcion
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setDescripcion($descripcion)
{
$this->descripcion = $descripcion;
return $this;
}
/**
* Get the value of descripcion.
*
* @return string
*/
public function getDescripcion()
{
return $this->descripcion;
}
/**
* Set the value of proposito.
*
* @param string $proposito
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setProposito($proposito)
{
$this->proposito = $proposito;
return $this;
}
/**
* Get the value of proposito.
*
* @return string
*/
public function getProposito()
{
return $this->proposito;
}
/**
* Set ProyectoEtapa entity (many to one).
*
* @param \UBV\SurUbvBundle\Entity\ProyectoEtapa $proyectoEtapa
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setProyectoEtapa(ProyectoEtapa $proyectoEtapa = null)
{
$this->proyectoEtapa = $proyectoEtapa;
return $this;
}
/**
* Get ProyectoEtapa entity (many to one).
*
* @return \UBV\SurUbvBundle\Entity\ProyectoEtapa
*/
public function getProyectoEtapa()
{
return $this->proyectoEtapa;
}
/**
* Set AporteTipo entity (many to one).
*
* @param \UBV\SurUbvBundle\Entity\AporteTipo $aporteTipo
* @return \UBV\SurUbvBundle\Entity\RequerimientoProyecto
*/
public function setAporteTipo(AporteTipo $aporteTipo = null)
{
$this->aporteTipo = $aporteTipo;
return $this;
}
/**
* Get AporteTipo entity (many to one).
*
* @return \UBV\SurUbvBundle\Entity\AporteTipo
*/
public function getAporteTipo()
{
return $this->aporteTipo;
}
public function __sleep()
{
return array('id', 'proyecto_etapa_id', 'concepto', 'cantidad', 'costo', 'descripcion', 'proposito', 'aporte_tipo_id');
}
}