예제 #1
0
 public static function toEntity(ResponsableDTO $responsableDTO)
 {
     $responsable = new Responsable();
     $responsable->setId($responsableDTO->getId());
     $responsable->setResponsableFacultad($responsableDTO->getResponsableFacultad());
     $responsable->setResponsableAsignatura($responsableDTO->getResponsableAsignatura());
     $responsable->setResponsablePersona($responsableDTO->getResponsablePersona());
     return $responsable;
 }
 public function updateResponsablePersona(Responsable $entity, Persona $responsablePersona)
 {
     $entity->setResponsablePersona($responsablePersona->getId());
     return $this->persistenceManager->update($entity);
 }