ProyectoEjeFormacion.php
2.92 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
<?php
namespace UBV\SurUbvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* UBV\SurUbvBundle\Entity\ProyectoEjeFormacion
*
* @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Repository\ProyectoEjeFormacionRepository")
* @ORM\Table(name="proyecto_eje_formacion", indexes={@ORM\Index(name="fk_proyecto_eje_formacion_proyecto_detalle1_idx", columns={"proyecto_detalle_id"}), @ORM\Index(name="fk_proyecto_eje_formacion_eje_formacion1_idx", columns={"eje_formacion_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_proyecto_eje_formacion_UNIQUE", columns={"id"})})
*/
class ProyectoEjeFormacion
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\SequenceGenerator(sequenceName="proyecto_eje_formacion_id_seq", allocationSize=1, initialValue=1)
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="ProyectoDetalle", inversedBy="proyectoEjeFormacions")
* @ORM\JoinColumn(name="proyecto_detalle_id", referencedColumnName="id", nullable=false)
*/
protected $proyectoDetalle;
/**
* @ORM\ManyToOne(targetEntity="EjeFormacion", inversedBy="proyectoEjeFormacions")
* @ORM\JoinColumn(name="eje_formacion_id", referencedColumnName="id", nullable=false)
*/
protected $ejeFormacion;
public function __construct()
{
}
/**
* Set the value of id.
*
* @param integer $id
* @return \UBV\SurUbvBundle\Entity\ProyectoEjeFormacion
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get the value of id.
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set ProyectoDetalle entity (many to one).
*
* @param \UBV\SurUbvBundle\Entity\ProyectoDetalle $proyectoDetalle
* @return \UBV\SurUbvBundle\Entity\ProyectoEjeFormacion
*/
public function setProyectoDetalle(ProyectoDetalle $proyectoDetalle = null)
{
$this->proyectoDetalle = $proyectoDetalle;
return $this;
}
/**
* Get ProyectoDetalle entity (many to one).
*
* @return \UBV\SurUbvBundle\Entity\ProyectoDetalle
*/
public function getProyectoDetalle()
{
return $this->proyectoDetalle;
}
/**
* Set EjeFormacion entity (many to one).
*
* @param \UBV\SurUbvBundle\Entity\EjeFormacion $ejeFormacion
* @return \UBV\SurUbvBundle\Entity\ProyectoEjeFormacion
*/
public function setEjeFormacion(EjeFormacion $ejeFormacion = null)
{
$this->ejeFormacion = $ejeFormacion;
return $this;
}
/**
* Get EjeFormacion entity (many to one).
*
* @return \UBV\SurUbvBundle\Entity\EjeFormacion
*/
public function getEjeFormacion()
{
return $this->ejeFormacion;
}
public function __sleep()
{
return array('id', 'proyecto_detalle_id', 'eje_formacion_id');
}
}