public function updateReservaSalon(Reserva $entity, Salon $reservaSalon) { $entity->setReservaSalon($reservaSalon->getId()); return $this->persistenceManager->update($entity); }
public static function toEntity(ReservaDTO $reservaDTO) { $reserva = new Reserva(); $reserva->setId($reservaDTO->getId()); $reserva->setReservaClase($reservaDTO->getReservaClase()); $reserva->setReservaHoraInicio($reservaDTO->getReservaHoraInicio()); $reserva->setReservaHoraFin($reservaDTO->getReservaHoraFin()); $reserva->setReservaResponsable($reservaDTO->getReservaResponsable()); $reserva->setReservaSalon($reservaDTO->getReservaSalon()); return $reserva; }