private function publishEvents() {
        /** @var CalendarEvent|TicketExtension $event */
        foreach (CalendarEvent::get() as $event) {
            if ($event->Tickets()->exists()) {
                if ($event->doPublish()) {
                    echo "[$event->ID] Published event \n";
                    $this->moveFieldData($event);
                } else {
                    echo "[$event->ID] Failed to publish event \n\n";
                }
            }
        }
    }