public function setBundle(AbstractBundle $bundle)
    {
        $data = $bundle->getValues();
        foreach ($data as $name => $value) {
            $query = $this->getNewQuery();
            $query = $bundle->makeQueryFiltered($query);
            $setting = $query->firstOrNew(['name' => $name]);
            $setting->value = $value;
            $setting->save();
        }
    }
public function setBundle(AbstractBundle $bundle)
    {
        $data = $bundle->getValues();
        foreach ($data as $name => $value) {
            $query = $this->getNewQuery();
            $query = $bundle->makeQueryFiltered($query);
            $setting = $query->firstOrNew(['name' => $name]);
            $setting->value = $value;
            $setting->save();
        }
    }
public function setBundle ( AbstractBundle $ bundle ) { $ data = $ bundle -> getValues ( ) ; foreach ( $ data as $ name => $ value ) { $ query = $ this -> getNewQuery ( ) ; $ query = $ bundle -> makeQueryFiltered ( $ query ) ; $ setting = $ query -> firstOrNew ( [ 'name' => $ name ] ) ; $ setting -> value = $ value ; $ setting -> save ( ) ; } }
Put a bundle into Persistence saving
@no-permission
@param AbstractBundle $bundle
Put a bundle into Persistence saving