private function addShopFieldset(FormInterface $form)
    {
        $shopsData = $form->addChild($this->getElement('nested_fieldset', [
            'name'  => 'shops_data',
            'label' => $this->trans('common.fieldset.shops')
        ]));

        $shopsData->addChild($this->getElement('multi_select', [
            'name'        => 'shops',
            'label'       => $this->trans('common.label.shops'),
            'options'     => $this->get('shop.dataset.admin')->getResult('select'),
            'transformer' => $this->getRepositoryTransformer('collection', $this->get('shop.repository'))
        ]));
    }
private function addShopFieldset(FormInterface $form)
    {
        $shopsData = $form->addChild($this->getElement('nested_fieldset', [
            'name'  => 'shops_data',
            'label' => $this->trans('common.fieldset.shops')
        ]));

        $shopsData->addChild($this->getElement('multi_select', [
            'name'        => 'shops',
            'label'       => $this->trans('common.label.shops'),
            'options'     => $this->get('shop.dataset.admin')->getResult('select'),
            'transformer' => $this->getRepositoryTransformer('collection', $this->get('shop.repository'))
        ]));
    }
private function addShopFieldset ( FormInterface $ form ) { $ shopsData = $ form -> addChild ( $ this -> getElement ( 'nested_fieldset' , [ 'name' => 'shops_data' , 'label' => $ this -> trans ( 'common.fieldset.shops' ) ] ) ) ; $ shopsData -> addChild ( $ this -> getElement ( 'multi_select' , [ 'name' => 'shops' , 'label' => $ this -> trans ( 'common.label.shops' ) , 'options' => $ this -> get ( 'shop.dataset.admin' ) -> getResult ( 'select' ) , 'transformer' => $ this -> getRepositoryTransformer ( 'collection' , $ this -> get ( 'shop.repository' ) ) ] ) ) ; }
Adds shop selector fieldset to form

@param FormInterface $form
Adds shop selector fieldset to form