/**
  * @param DataGridEvent $event
  */
 public function onSave(DataGridEvent $event)
 {
     $type = $event->get('grid_order_type');
     if ($type === PagekitGridTypes::PAGEKIT_GRID_TYPE_AREA_LIST) {
         $data = $event->get('grid_item_order');
         if ($data) {
             if (isset($data[0])) {
                 $sequenceIds = explode(',', $data[0]);
                 $this->instanceManager->orderInstances($sequenceIds);
             }
         }
     }
 }
 public function onSave(DataGridEvent $event)
 {
     $data = $event->get('grid_item_display');
     if ($data) {
         $this->objectManager->getRepository('BigfishEavBundle:Container')->toggleDisplayContainers($data);
     }
 }
 public function onSave(DataGridEvent $event)
 {
     $data = $event->get('grid_item_order');
     if ($data) {
         foreach ($data as $orderContainers) {
             if ($orderContainers) {
                 $sequenceIds = explode(',', $orderContainers);
                 $this->objectManager->getRepository('BigfishEavBundle:Container')->orderContainers($sequenceIds);
             }
         }
     }
 }