public function getBundle(AbstractBundle $bundle, $default = false)
    {
        if ($default) {
            return $bundle;
        }
        $query = $this->getNewQuery();
        $query = $bundle->makeQueryFiltered($query);
        $settings = $query->pluck('value', 'name');
        $bundle->setEnableSetter(false);
        $bundle->load($settings);
        $bundle->setEnableSetter(true);
        return $bundle;
    }
public function getBundle(AbstractBundle $bundle, $default = false)
    {
        if ($default) {
            return $bundle;
        }
        $query = $this->getNewQuery();
        $query = $bundle->makeQueryFiltered($query);
        $settings = $query->pluck('value', 'name');
        $bundle->setEnableSetter(false);
        $bundle->load($settings);
        $bundle->setEnableSetter(true);
        return $bundle;
    }
public function getBundle ( AbstractBundle $ bundle , $ default = false ) { if ( $ default ) { return $ bundle ; } $ query = $ this -> getNewQuery ( ) ; $ query = $ bundle -> makeQueryFiltered ( $ query ) ; $ settings = $ query -> pluck ( 'value' , 'name' ) ; $ bundle -> setEnableSetter ( false ) ; $ bundle -> load ( $ settings ) ; $ bundle -> setEnableSetter ( true ) ; return $ bundle ; }
Get a setting bundle
@no-permission
@param AbstractBundle $bundle
@param bool $default
@return AbstractBundle
Get a setting bundle