Commit 3c2af6088aee9b65acfdeed3d825f57c498aa478

Authored by Wilmer
1 parent b9b8b40b82
Exists in master

elimina la institucion asociada debido a que ya existe la logica para la asociación

Showing 1 changed file with 0 additions and 150 deletions   Show diff stats
src/AppBundle/Entity/InstitucionAsociada.php
@@ -1,150 +0,0 @@ @@ -1,150 +0,0 @@
1 -<?php  
2 -/**  
3 - * Created by PhpStorm.  
4 - * User: ubv-cipee  
5 - * Date: 29/06/16  
6 - * Time: 08:40 AM  
7 - */  
8 -  
9 -  
10 -namespace AppBundle\Entity;  
11 -  
12 -use Doctrine\ORM\Mapping as ORM;  
13 -  
14 -/**  
15 - * InstitucionAsociada  
16 - *  
17 - * @ORM\Table(name="institucion_asociada", indexes={@ORM\Index(name="fki_institucion_institucion_central", columns={"id_institucion_central"}), @ORM\Index(name="fki_institucion_institucion_asociada", columns={"id_institucion_asociada"})})  
18 - * @ORM\Entity  
19 - */  
20 -class InstitucionAsociada  
21 -{  
22 - /**  
23 - * @var string  
24 - *  
25 - * @ORM\Column(name="nombre", type="string", length=250, nullable=true, options={"comment" = "Nombre de la institucion.Debe ser unico, las instituciones que compartan y/o alternen el mismo espacio fisico deben diferenciarse por su nombre. Ej: Alde-Bolivar-Dia, Alde-Bolivar-Noche"})  
26 - */  
27 - private $nombre;  
28 -  
29 -  
30 -  
31 - /**  
32 - * @var integer  
33 - *  
34 - * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la institucion"})  
35 - * @ORM\Id  
36 - * @ORM\GeneratedValue(strategy="IDENTITY")  
37 - * @ORM\SequenceGenerator(sequenceName="institucion_id_seq", allocationSize=1, initialValue=1)  
38 - */  
39 - private $id;  
40 -  
41 - /**  
42 - * @var \AppBundle\Entity\TipoInstitucion  
43 - *  
44 - * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Institucion")  
45 - * @ORM\JoinColumns({  
46 - * @ORM\JoinColumn(name="id_institucion_central", referencedColumnName="id", nullable=false)  
47 - * })  
48 - */  
49 - private $idInstitucionCentral;  
50 -  
51 - /**  
52 - * @var \AppBundle\Entity\EjeParroquia  
53 - *  
54 - * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Institucion")  
55 - * @ORM\JoinColumns({  
56 - * @ORM\JoinColumn(name="id_institucion_asociada", referencedColumnName="id", nullable=false)  
57 - * })  
58 - */  
59 - private $idInstitucionAsociada;  
60 -  
61 -  
62 -  
63 -  
64 -  
65 -  
66 - public function __toString(){  
67 - return $this->getNombre();  
68 - }  
69 -  
70 -  
71 -  
72 - /**  
73 - * Set nombre  
74 - *  
75 - * @param string $nombre  
76 - * @return InstitucionAsociada  
77 - */  
78 - public function setNombre($nombre)  
79 - {  
80 - $this->nombre = $nombre;  
81 -  
82 - return $this;  
83 - }  
84 -  
85 - /**  
86 - * Get nombre  
87 - *  
88 - * @return string  
89 - */  
90 - public function getNombre()  
91 - {  
92 - return $this->nombre;  
93 - }  
94 -  
95 - /**  
96 - * Get id  
97 - *  
98 - * @return integer  
99 - */  
100 - public function getId()  
101 - {  
102 - return $this->id;  
103 - }  
104 -  
105 - /**  
106 - * Set idInstitucionCentral  
107 - *  
108 - * @param \AppBundle\Entity\Institucion $idInstitucionCentral  
109 - * @return InstitucionAsociada  
110 - */  
111 - public function setIdInstitucionCentral(\AppBundle\Entity\Institucion $idInstitucionCentral)  
112 - {  
113 - $this->idInstitucionCentral = $idInstitucionCentral;  
114 -  
115 - return $this;  
116 - }  
117 -  
118 - /**  
119 - * Get idInstitucionCentral  
120 - *  
121 - * @return \AppBundle\Entity\Institucion  
122 - */  
123 - public function getIdInstitucionCentral()  
124 - {  
125 - return $this->idInstitucionCentral;  
126 - }  
127 -  
128 - /**  
129 - * Set idInstitucionAsociada  
130 - *  
131 - * @param \AppBundle\Entity\Institucion $idInstitucionAsociada  
132 - * @return InstitucionAsociada  
133 - */  
134 - public function setIdInstitucionAsociada(\AppBundle\Entity\Institucion $idInstitucionAsociada)  
135 - {  
136 - $this->idInstitucionAsociada = $idInstitucionAsociada;  
137 -  
138 - return $this;  
139 - }  
140 -  
141 - /**  
142 - * Get idInstitucionAsociada  
143 - *  
144 - * @return \AppBundle\Entity\Institucion  
145 - */  
146 - public function getIdInstitucionAsociada()  
147 - {  
148 - return $this->idInstitucionAsociada;  
149 - }  
150 -}