public function toggleVisibility(BrandToggleVisibilityEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $brand = $event->getBrand();

        $brand
            ->setDispatcher($dispatcher)
            ->setVisible(!$brand->getVisible())
            ->save();

        $event->setBrand($brand);
    }
public function toggleVisibility(BrandToggleVisibilityEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $brand = $event->getBrand();

        $brand
            ->setDispatcher($dispatcher)
            ->setVisible(!$brand->getVisible())
            ->save();

        $event->setBrand($brand);
    }
public function toggleVisibility ( BrandToggleVisibilityEvent $ event , $ eventName , EventDispatcherInterface $ dispatcher ) { $ brand = $ event -> getBrand ( ) ; $ brand -> setDispatcher ( $ dispatcher ) -> setVisible ( ! $ brand -> getVisible ( ) ) -> save ( ) ; $ event -> setBrand ( $ brand ) ; }
Toggle Brand visibility

@param BrandToggleVisibilityEvent $event
@param string $eventName
@param EventDispatcherInterface $dispatcher
@throws \Exception
@throws \Propel\Runtime\Exception\PropelException
Toggle Brand visibility