From c8101b7cc90a244ee49e04ad6cde0e9ce8f199b9 Mon Sep 17 00:00:00 2001 From: Albin Date: Sat, 29 Jun 2024 17:56:33 +0200 Subject: [PATCH] issue#1479 revert changes for afup_forum_sponsors_tickets --- ...sponsors_tickets_transport_information.php | 12 ----- .../Repository/SponsorTicketRepository.php | 10 ----- .../AppBundle/Event/Model/SponsorTicket.php | 44 ------------------- 3 files changed, 66 deletions(-) delete mode 100644 db/migrations/20240619215712_afup_forum_sponsors_tickets_transport_information.php diff --git a/db/migrations/20240619215712_afup_forum_sponsors_tickets_transport_information.php b/db/migrations/20240619215712_afup_forum_sponsors_tickets_transport_information.php deleted file mode 100644 index 591217d14..000000000 --- a/db/migrations/20240619215712_afup_forum_sponsors_tickets_transport_information.php +++ /dev/null @@ -1,12 +0,0 @@ -execute("ALTER TABLE `afup_forum_sponsors_tickets` ADD `transport_mode` TINYINT, ADD `transport_distance` SMALLINT"); - } -} diff --git a/sources/AppBundle/Event/Model/Repository/SponsorTicketRepository.php b/sources/AppBundle/Event/Model/Repository/SponsorTicketRepository.php index 4d057128a..25da591c6 100644 --- a/sources/AppBundle/Event/Model/Repository/SponsorTicketRepository.php +++ b/sources/AppBundle/Event/Model/Repository/SponsorTicketRepository.php @@ -92,16 +92,6 @@ public static function initMetadata(SerializerFactoryInterface $serializerFactor 'type' => 'bool', 'serializer' => Boolean::class ]) - ->addField([ - 'columnName' => 'transport_mode', - 'fieldName' => 'transportMode', - 'type' => 'int', - ]) - ->addField([ - 'columnName' => 'transport_distance', - 'fieldName' => 'transportDistance', - 'type' => 'int' - ]) ; return $metadata; diff --git a/sources/AppBundle/Event/Model/SponsorTicket.php b/sources/AppBundle/Event/Model/SponsorTicket.php index 04af0ceb6..ef54958e8 100644 --- a/sources/AppBundle/Event/Model/SponsorTicket.php +++ b/sources/AppBundle/Event/Model/SponsorTicket.php @@ -299,48 +299,4 @@ public function setQrCodesScannerAvailable($qrCodesScannerAvailable) $this->qrCodesScannerAvailable = $qrCodesScannerAvailable; return $this; } - - /** - * @return null|string - */ - public function getTransportMode() - { - return $this->transportMode; - } - - /** - * @param null|string $transportMode - * - * @return $this - */ - public function setTransportMode($transportMode) - { - $this->propertyChanged('transportMode', $this->transportMode, $transportMode); - - $this->transportMode = $transportMode; - - return $this; - } - - /** - * @return null|int - */ - public function getTransportDistance() - { - return $this->transportDistance; - } - - /** - * @param null|int $transportDistance - * - * @return $this - */ - public function setTransportDistance($transportDistance) - { - $this->propertyChanged('transportDistance', $this->transportDistance, $transportDistance); - - $this->transportDistance = $transportDistance; - - return $this; - } }