Commit 0945cc84a9a8bab5a833ed7e41f829467925fc70
1 parent
f8460ba290
Exists in
master
creada la tabla para registrar a los tutores de los docentes que solicitan ascenso
Showing
1 changed file
with
212 additions
and
23 deletions
Show diff stats
src/AppBundle/Entity/TutoresAscenso.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | - * Created by PhpStorm. | 3 | + * Creado por: |
| 4 | * User: Wilmer Ramones | 4 | * User: Wilmer Ramones |
| 5 | - * Date: 29/06/16 | ||
| 6 | - * Time: 07:52 AM | 5 | + * Date: 16/01/17 |
| 6 | + * Time: 08:25 AM | ||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | namespace AppBundle\Entity; | 9 | namespace AppBundle\Entity; |
| @@ -11,59 +11,191 @@ namespace AppBundle\Entity; | @@ -11,59 +11,191 @@ namespace AppBundle\Entity; | ||
| 11 | use Doctrine\ORM\Mapping as ORM; | 11 | use Doctrine\ORM\Mapping as ORM; |
| 12 | 12 | ||
| 13 | /** | 13 | /** |
| 14 | - * Genero | 14 | + * Tutores Ascenso |
| 15 | * | 15 | * |
| 16 | - * @ORM\Table(name="genero", uniqueConstraints={@ORM\UniqueConstraint(name="uq_nombre", columns={"nombre"})}) | 16 | + * @ORM\Table(name="tutores_ascenso", uniqueConstraints={@ORM\UniqueConstraint(name="uq_cedula", columns={"cedula_pasaporte"})}) |
| 17 | * @ORM\Entity | 17 | * @ORM\Entity |
| 18 | */ | 18 | */ |
| 19 | -class Genero | 19 | +class TutoresAscenso |
| 20 | { | 20 | { |
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * @var \AppBundle\Entity\DocumentoIdentidad | ||
| 24 | + * | ||
| 25 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\DocumentoIdentidad") | ||
| 26 | + * @ORM\JoinColumns({ | ||
| 27 | + * @ORM\JoinColumn(name="id_documento_identidad", referencedColumnName="id", nullable=false) | ||
| 28 | + * }) | ||
| 29 | + */ | ||
| 30 | + private $idDocumentoentidad; | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * @var string | ||
| 35 | + * | ||
| 36 | + * @ORM\Column(name="cedula_pasaporte", type="string", length=15, nullable=false, options={"comment" = "Numero de cedula o pasaporte de la persona"}) | ||
| 37 | + */ | ||
| 38 | + private $cedula_pasaporte; | ||
| 39 | + | ||
| 40 | + | ||
| 21 | /** | 41 | /** |
| 22 | * @var string | 42 | * @var string |
| 23 | * | 43 | * |
| 24 | - * @ORM\Column(name="nombre", type="string", length=10, nullable=false, options={"comment" = "Nombre del genero"}) | 44 | + * @ORM\Column(name="correo_electronico", type="string", length=80, nullable=true, options={"comment" = "nombre de correo electronico de la apersona"}) |
| 25 | */ | 45 | */ |
| 26 | - private $nombre; | 46 | + private $correoElectronico; |
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * @var string | ||
| 50 | + * | ||
| 51 | + * @ORM\Column(name="nombres", type="string", length=255, nullable=false, options={"comment" = "Nombres del Tutor"}) | ||
| 52 | + */ | ||
| 53 | + private $nombres; | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * @var string | ||
| 57 | + * | ||
| 58 | + * @ORM\Column(name="apellidos", type="string", length=255, nullable=false, options={"comment" = "Apellidos del Tutor"}) | ||
| 59 | + */ | ||
| 60 | + private $apellidos; | ||
| 27 | 61 | ||
| 28 | /** | 62 | /** |
| 29 | * @var integer | 63 | * @var integer |
| 30 | * | 64 | * |
| 31 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del genero"}) | 65 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del tutor"}) |
| 32 | * @ORM\Id | 66 | * @ORM\Id |
| 33 | * @ORM\GeneratedValue(strategy="IDENTITY") | 67 | * @ORM\GeneratedValue(strategy="IDENTITY") |
| 34 | * @ORM\SequenceGenerator(sequenceName="genero_id_seq", allocationSize=1, initialValue=1) | 68 | * @ORM\SequenceGenerator(sequenceName="genero_id_seq", allocationSize=1, initialValue=1) |
| 35 | */ | 69 | */ |
| 36 | private $id; | 70 | private $id; |
| 71 | + | ||
| 72 | + | ||
| 73 | + /** | ||
| 74 | + * @var \AppBundle\Entity\Escalafones | ||
| 75 | + * | ||
| 76 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Escalafones") | ||
| 77 | + * @ORM\JoinColumns({ | ||
| 78 | + * @ORM\JoinColumn(name="id_escala", referencedColumnName="id", nullable=false) | ||
| 79 | + * }) | ||
| 80 | + */ | ||
| 81 | + protected $idEscala; | ||
| 82 | + | ||
| 83 | + | ||
| 84 | + /** | ||
| 85 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Ascenso", inversedBy="tutores_ascenso") | ||
| 86 | + * @ORM\JoinColumn(name="ascenso_id", referencedColumnName="id") | ||
| 87 | + */ | ||
| 88 | + private $ascenso; | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | + /** | ||
| 93 | + * | ||
| 94 | + * @return string | ||
| 95 | + */ | ||
| 96 | + public function __toString() | ||
| 97 | + { | ||
| 98 | + return $this->nombres . " " . $this->apellidos; | ||
| 99 | + } | ||
| 37 | 100 | ||
| 38 | 101 | ||
| 39 | 102 | ||
| 40 | /** | 103 | /** |
| 41 | - * Set nombre | 104 | + * Set cedulaPasaporte |
| 42 | * | 105 | * |
| 43 | - * @param string $nombre | ||
| 44 | - * @return Genero | 106 | + * @param string $cedulaPasaporte |
| 107 | + * @return TutoresAscenso | ||
| 45 | */ | 108 | */ |
| 46 | - public function setNombre($nombre) | 109 | + public function setCedulaPasaporte($cedulaPasaporte) |
| 47 | { | 110 | { |
| 48 | - $this->nombre = $nombre; | 111 | + $this->cedulaPasaporte = $cedulaPasaporte; |
| 49 | 112 | ||
| 50 | return $this; | 113 | return $this; |
| 51 | } | 114 | } |
| 52 | 115 | ||
| 53 | /** | 116 | /** |
| 54 | - * Get nombre | 117 | + * Get cedulaPasaporte |
| 55 | * | 118 | * |
| 56 | - * @return string | 119 | + * @return string |
| 120 | + */ | ||
| 121 | + public function getCedulaPasaporte() | ||
| 122 | + { | ||
| 123 | + return $this->cedulaPasaporte; | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + /** | ||
| 127 | + * Set correoElectronico | ||
| 128 | + * | ||
| 129 | + * @param string $correoElectronico | ||
| 130 | + * @return TutoresAscenso | ||
| 131 | + */ | ||
| 132 | + public function setCorreoElectronico($correoElectronico) | ||
| 133 | + { | ||
| 134 | + $this->correoElectronico = $correoElectronico; | ||
| 135 | + | ||
| 136 | + return $this; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + /** | ||
| 140 | + * Get correoElectronico | ||
| 141 | + * | ||
| 142 | + * @return string | ||
| 143 | + */ | ||
| 144 | + public function getCorreoElectronico() | ||
| 145 | + { | ||
| 146 | + return $this->correoElectronico; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + /** | ||
| 150 | + * Set nombres | ||
| 151 | + * | ||
| 152 | + * @param string $nombres | ||
| 153 | + * @return TutoresAscenso | ||
| 154 | + */ | ||
| 155 | + public function setNombres($nombres) | ||
| 156 | + { | ||
| 157 | + $this->nombres = $nombres; | ||
| 158 | + | ||
| 159 | + return $this; | ||
| 160 | + } | ||
| 161 | + | ||
| 162 | + /** | ||
| 163 | + * Get nombres | ||
| 164 | + * | ||
| 165 | + * @return string | ||
| 166 | + */ | ||
| 167 | + public function getNombres() | ||
| 168 | + { | ||
| 169 | + return $this->nombres; | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + /** | ||
| 173 | + * Set apellidos | ||
| 174 | + * | ||
| 175 | + * @param string $apellidos | ||
| 176 | + * @return TutoresAscenso | ||
| 57 | */ | 177 | */ |
| 58 | - public function getNombre() | 178 | + public function setApellidos($apellidos) |
| 59 | { | 179 | { |
| 60 | - return $this->nombre; | 180 | + $this->apellidos = $apellidos; |
| 181 | + | ||
| 182 | + return $this; | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + /** | ||
| 186 | + * Get apellidos | ||
| 187 | + * | ||
| 188 | + * @return string | ||
| 189 | + */ | ||
| 190 | + public function getApellidos() | ||
| 191 | + { | ||
| 192 | + return $this->apellidos; | ||
| 61 | } | 193 | } |
| 62 | 194 | ||
| 63 | /** | 195 | /** |
| 64 | * Get id | 196 | * Get id |
| 65 | * | 197 | * |
| 66 | - * @return integer | 198 | + * @return integer |
| 67 | */ | 199 | */ |
| 68 | public function getId() | 200 | public function getId() |
| 69 | { | 201 | { |
| @@ -71,14 +203,71 @@ class Genero | @@ -71,14 +203,71 @@ class Genero | ||
| 71 | } | 203 | } |
| 72 | 204 | ||
| 73 | /** | 205 | /** |
| 74 | - * Get nombre | 206 | + * Set idDocumentoentidad |
| 75 | * | 207 | * |
| 76 | - * @return string | 208 | + * @param \AppBundle\Entity\DocumentoIdentidad $idDocumentoentidad |
| 209 | + * @return TutoresAscenso | ||
| 77 | */ | 210 | */ |
| 78 | - public function __toString() | 211 | + public function setIdDocumentoentidad(\AppBundle\Entity\DocumentoIdentidad $idDocumentoentidad) |
| 212 | + { | ||
| 213 | + $this->idDocumentoentidad = $idDocumentoentidad; | ||
| 214 | + | ||
| 215 | + return $this; | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + /** | ||
| 219 | + * Get idDocumentoentidad | ||
| 220 | + * | ||
| 221 | + * @return \AppBundle\Entity\DocumentoIdentidad | ||
| 222 | + */ | ||
| 223 | + public function getIdDocumentoentidad() | ||
| 224 | + { | ||
| 225 | + return $this->idDocumentoentidad; | ||
| 226 | + } | ||
| 227 | + | ||
| 228 | + /** | ||
| 229 | + * Set idEscala | ||
| 230 | + * | ||
| 231 | + * @param \AppBundle\Entity\Escalafones $idEscala | ||
| 232 | + * @return TutoresAscenso | ||
| 233 | + */ | ||
| 234 | + public function setIdEscala(\AppBundle\Entity\Escalafones $idEscala) | ||
| 79 | { | 235 | { |
| 80 | - return $this->nombre; | 236 | + $this->idEscala = $idEscala; |
| 237 | + | ||
| 238 | + return $this; | ||
| 81 | } | 239 | } |
| 82 | 240 | ||
| 241 | + /** | ||
| 242 | + * Get idEscala | ||
| 243 | + * | ||
| 244 | + * @return \AppBundle\Entity\Escalafones | ||
| 245 | + */ | ||
| 246 | + public function getIdEscala() | ||
| 247 | + { | ||
| 248 | + return $this->idEscala; | ||
| 249 | + } | ||
| 83 | 250 | ||
| 251 | + /** | ||
| 252 | + * Set ascenso | ||
| 253 | + * | ||
| 254 | + * @param \AppBundle\Entity\Ascenso $ascenso | ||
| 255 | + * @return TutoresAscenso | ||
| 256 | + */ | ||
| 257 | + public function setAscenso(\AppBundle\Entity\Ascenso $ascenso = null) | ||
| 258 | + { | ||
| 259 | + $this->ascenso = $ascenso; | ||
| 260 | + | ||
| 261 | + return $this; | ||
| 262 | + } | ||
| 263 | + | ||
| 264 | + /** | ||
| 265 | + * Get ascenso | ||
| 266 | + * | ||
| 267 | + * @return \AppBundle\Entity\Ascenso | ||
| 268 | + */ | ||
| 269 | + public function getAscenso() | ||
| 270 | + { | ||
| 271 | + return $this->ascenso; | ||
| 272 | + } | ||
| 84 | } | 273 | } |