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";
                }
            }
        }
    }
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";
                }
            }
        }
    }
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" ; } } } }
Publishes the events so the default fields are created
Publishes the events so the default fields are created