public function updatePrestamoEstudiante(Prestamo $entity, Estudiante $prestamoEstudiante)
 {
     $entity->setPrestamoEstudiante($prestamoEstudiante->getId());
     return $this->persistenceManager->update($entity);
 }
 public static function toEntity(PrestamoDTO $prestamoDTO)
 {
     $prestamo = new Prestamo();
     $prestamo->setId($prestamoDTO->getId());
     $prestamo->setPrestamoEntrada($prestamoDTO->getPrestamoEntrada());
     $prestamo->setPrestamoSalida($prestamoDTO->getPrestamoSalida());
     $prestamo->setPrestamoComentarios($prestamoDTO->getPrestamoComentarios());
     $prestamo->setPrestamoEstudiante($prestamoDTO->getPrestamoEstudiante());
     $prestamo->setPrestamoComputadora($prestamoDTO->getPrestamoComputadora());
     return $prestamo;
 }