Nota.php
2.24 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
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Nota
*
* @ORM\Table(name="nota", indexes={@ORM\Index(name="fki_id_escala_nota", columns={"id_escala"}), @ORM\Index(name="IDX_C8D03E0D66B9A058", columns={"id_nomenclatura_nota"})})
* @ORM\Entity
*/
class Nota
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la nota"})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\SequenceGenerator(sequenceName="nota_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var \AppBundle\Entity\NomenclaturaNota
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\NomenclaturaNota")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_nomenclatura_nota", referencedColumnName="id", nullable=false)
* })
*/
private $idNomenclaturaNota;
/**
* @var \AppBundle\Entity\Escala
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Escala")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_escala", referencedColumnName="id", nullable=false)
* })
*/
private $idEscala;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set idNomenclaturaNota
*
* @param \AppBundle\Entity\NomenclaturaNota $idNomenclaturaNota
* @return Nota
*/
public function setIdNomenclaturaNota(\AppBundle\Entity\NomenclaturaNota $idNomenclaturaNota)
{
$this->idNomenclaturaNota = $idNomenclaturaNota;
return $this;
}
/**
* Get idNomenclaturaNota
*
* @return \AppBundle\Entity\NomenclaturaNota
*/
public function getIdNomenclaturaNota()
{
return $this->idNomenclaturaNota;
}
/**
* Set idEscala
*
* @param \AppBundle\Entity\Escala $idEscala
* @return Nota
*/
public function setIdEscala(\AppBundle\Entity\Escala $idEscala)
{
$this->idEscala = $idEscala;
return $this;
}
/**
* Get idEscala
*
* @return \AppBundle\Entity\Escala
*/
public function getIdEscala()
{
return $this->idEscala;
}
}