public function create(SaleCreateEvent $event)
    {
        $sale = new SaleModel();

        $sale
            ->setLocale($event->getLocale())
            ->setTitle($event->getTitle())
            ->setSaleLabel($event->getSaleLabel())
            ->save()
        ;

        $event->setSale($sale);
    }
public function create(SaleCreateEvent $event)
    {
        $sale = new SaleModel();

        $sale
            ->setLocale($event->getLocale())
            ->setTitle($event->getTitle())
            ->setSaleLabel($event->getSaleLabel())
            ->save()
        ;

        $event->setSale($sale);
    }
public function create ( SaleCreateEvent $ event ) { $ sale = new SaleModel ( ) ; $ sale -> setLocale ( $ event -> getLocale ( ) ) -> setTitle ( $ event -> getTitle ( ) ) -> setSaleLabel ( $ event -> getSaleLabel ( ) ) -> save ( ) ; $ event -> setSale ( $ sale ) ; }
Create a new Sale

@param SaleCreateEvent $event
Create a new Sale