AldeaPrograma.php
2.8 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
<?php
namespace UBV\SurUbvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* UBV\SurUbvBundle\Entity\AldeaPrograma
*
* @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaProgramaRepository")
* @ORM\Table(name="aldea_programa", indexes={@ORM\Index(name="fk_aldea_programa_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aldea_programa_programa1_idx", columns={"programa_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="codigo_opsu_UNIQUE", columns={"codigo_opsu"}), @ORM\UniqueConstraint(name="id_aldea_programa_UNIQUE", columns={"id"})})
*/
class AldeaPrograma
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\SequenceGenerator(sequenceName="aldea_programa_id_seq", allocationSize=1, initialValue=1)
*/
protected $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $codigo_opsu;
/**
* @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaProgramas")
* @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false)
*/
protected $aldea;
/**
* @ORM\ManyToOne(targetEntity="Programa", inversedBy="aldeaProgramas")
* @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false)
*/
protected $programa;
public function __construct()
{
}
public function __sleep()
{
return array('id', 'codigo_opsu', 'aldea_id', 'programa_id');
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->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;
}
}