Commit e971f686b66c29fb8cf345e66b620f2b4c2af284

Authored by Wilmer Ramones
1 parent c131a5d024
Exists in master

corregido error en el enlace uno a muchos entre ascenso y los tutores

src/AppBundle/Entity/Ascenso.php
... ... @@ -142,7 +142,7 @@ class Ascenso
142 142 /**
143 143 * @ORM\OneToMany(targetEntity="AppBundle\Entity\TutoresAscenso", mappedBy="ascenso")
144 144 */
145   - private $tutores_asignados;
  145 + private $tutoresAscenso;
146 146  
147 147  
148 148 /**
... ... @@ -447,44 +447,45 @@ class Ascenso
447 447 {
448 448 return $this->idEscalafones;
449 449 }
  450 +
450 451 /**
451 452 * Constructor
452 453 */
453 454 public function __construct()
454 455 {
455   - $this->tutores_asignados = new \Doctrine\Common\Collections\ArrayCollection();
  456 + $this->tutoresAscenso = new \Doctrine\Common\Collections\ArrayCollection();
456 457 }
457 458  
458 459 /**
459   - * Add tutores_asignados
  460 + * Add tutoresAscenso
460 461 *
461   - * @param \AppBundle\Entity\TutoresAscenso $tutoresAsignados
  462 + * @param \AppBundle\Entity\TutoresAscenso $tutoresAscenso
462 463 * @return Ascenso
463 464 */
464   - public function addTutoresAsignado(\AppBundle\Entity\TutoresAscenso $tutoresAsignados)
  465 + public function addTutoresAscenso(\AppBundle\Entity\TutoresAscenso $tutoresAscenso)
465 466 {
466   - $this->tutores_asignados[] = $tutoresAsignados;
  467 + $this->tutoresAscenso[] = $tutoresAscenso;
467 468  
468 469 return $this;
469 470 }
470 471  
471 472 /**
472   - * Remove tutores_asignados
  473 + * Remove tutoresAscenso
473 474 *
474   - * @param \AppBundle\Entity\TutoresAscenso $tutoresAsignados
  475 + * @param \AppBundle\Entity\TutoresAscenso $tutoresAscenso
475 476 */
476   - public function removeTutoresAsignado(\AppBundle\Entity\TutoresAscenso $tutoresAsignados)
  477 + public function removeTutoresAscenso(\AppBundle\Entity\TutoresAscenso $tutoresAscenso)
477 478 {
478   - $this->tutores_asignados->removeElement($tutoresAsignados);
  479 + $this->tutoresAscenso->removeElement($tutoresAscenso);
479 480 }
480 481  
481 482 /**
482   - * Get tutores_asignados
  483 + * Get tutoresAscenso
483 484 *
484 485 * @return \Doctrine\Common\Collections\Collection
485 486 */
486   - public function getTutoresAsignados()
  487 + public function getTutoresAscenso()
487 488 {
488   - return $this->tutores_asignados;
  489 + return $this->tutoresAscenso;
489 490 }
490 491 }
... ...
src/AppBundle/Entity/Ascenso.php~
... ... @@ -142,7 +142,7 @@ class Ascenso
142 142 /**
143 143 * @ORM\OneToMany(targetEntity="AppBundle\Entity\TutoresAscenso", mappedBy="ascenso")
144 144 */
145   - private $tutores_asignados;
  145 + private $tutoresAscenso;
146 146  
147 147  
148 148 /**
... ... @@ -447,4 +447,5 @@ class Ascenso
447 447 {
448 448 return $this->idEscalafones;
449 449 }
  450 +
450 451 }
... ...
src/AppBundle/Entity/TutoresAscenso.php
... ... @@ -35,7 +35,7 @@ class TutoresAscenso
35 35 *
36 36 * @ORM\Column(name="cedula_pasaporte", type="string", length=15, nullable=false, options={"comment" = "Numero de cedula o pasaporte de la persona"})
37 37 */
38   - private $cedula_pasaporte;
  38 + private $cedulaPasaporte;
39 39  
40 40  
41 41 /**
... ... @@ -82,7 +82,7 @@ class TutoresAscenso
82 82  
83 83  
84 84 /**
85   - * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Ascenso", inversedBy="tutores_ascenso")
  85 + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Ascenso", inversedBy="tutoresAscenso")
86 86 * @ORM\JoinColumn(name="ascenso_id", referencedColumnName="id")
87 87 */
88 88 private $ascenso;
... ...
src/AppBundle/Form/AscensoType.php
... ... @@ -108,6 +108,13 @@ class AscensoType extends AbstractType
108 108 ))
109 109  
110 110  
  111 + ->add('tutores_asignados', EntityType::class, array(
  112 + 'placeholder' => 'Añadir Tutores...',
  113 + 'class' => 'AppBundle:TutoresAscenso',
  114 + 'label' => false
  115 + ))
  116 +
  117 +
111 118 ->add('investigacion', FileType::class, array(
112 119 'label' => 'Digital Trabajo de investigación / Tesis',
113 120 'required' => true,
... ...