concrete/src/Config/DatabaseSaver.php
public function save($item, $value, $environment, $group, $namespace = null)
    {
        $builder = $this->getConnection()->createQueryBuilder();

        $query = $builder->delete('Config')
            ->where('configNamespace = :namespace',
                    'configGroup = :group',
                    'configItem LIKE :item')
            ->setParameters(array(
                ':namespace' => $namespace ?: '',
                ':group' => $group,
                ':item' => "{$item}.%",
            ));
        $amount_deleted = $query->execute();

        $this->doSave($item, $value, $environment, $group, $namespace);
    }
public function save($item, $value, $environment, $group, $namespace = null)
    {
        $builder = $this->getConnection()->createQueryBuilder();

        $query = $builder->delete('Config')
            ->where('configNamespace = :namespace',
                    'configGroup = :group',
                    'configItem LIKE :item')
            ->setParameters(array(
                ':namespace' => $namespace ?: '',
                ':group' => $group,
                ':item' => "{$item}.%",
            ));
        $amount_deleted = $query->execute();

        $this->doSave($item, $value, $environment, $group, $namespace);
    }
public function save ( $ item , $ value , $ environment , $ group , $ namespace = null ) { $ builder = $ this -> getConnection ( ) -> createQueryBuilder ( ) ; $ query = $ builder -> delete ( 'Config' ) -> where ( 'configNamespace = :namespace' , 'configGroup = :group' , 'configItem LIKE :item' ) -> setParameters ( array ( ':namespace' => $ namespace ? : '' , ':group' => $ group , ':item' => "{$item}.%" , ) ) ; $ amount_deleted = $ query -> execute ( ) ; $ this -> doSave ( $ item , $ value , $ environment , $ group , $ namespace ) ; }
Save config item.

@param string      $item
@param string      $value
@param string      $environment
@param string      $group
@param string|null $namespace

@return bool
Save config item .