Remove configValues

@param VinceT\AdminConfigurationBundle\Entity\ConfigValue $configValue ConfigValue

@return VinceT\AdminConfigurationBundle\Entity\ConfigGroup
480225
public function removeConfigValue(\VinceT\AdminConfigurationBundle\Entity\ConfigValue $configValue)
    {
        $this->configValues->removeElement($configValue);
    }
646296
public function removeAttributeValue(AttributeValueInterface $attributeValue)
    {
        if ($this->attributeValues->contains($attributeValue)) {
            $attributeValue->setSubject(null);
            $this->attributeValues->removeElement($attributeValue);
        }

        return $this;
    }
1306209
public function removePropertyValueByLg( core_kernel_classes_Resource $resource,  core_kernel_classes_Property $property, $lg, $options = array())
    {
        $returnValue = (bool) false;

        $sqlQuery = 'DELETE FROM statements WHERE subject = ? and predicate = ? and l_language = ?';
        //be sure the property we try to remove is included in an updatable model
		$sqlQuery .= ' AND '.$this->getModelWriteSqlCondition();
        
        $returnValue = $this->getPersistence()->exec($sqlQuery, array (
        	$resource->getUri(),
        	$property->getUri(),
            ($property->isLgDependent() ? $lg : '')
        ));
        
    	if (!$returnValue){
        	$returnValue = false;
        }
        
        

        return (bool) $returnValue;
    }
182669
public function _delete(...$keyValues) {
		$instance = DAO::getOne ( $this->model, $keyValues, false );
		$this->operate_ ( $instance, function ($instance) {
			return DAO::remove ( $instance );
		}, "deleted", "Unable to delete the instance", $keyValues );
	}
402351
public function removeDiscGroup()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $groupIds = $this->_getActionIds('oxobject2discount.oxid');
        if ($config->getRequestParameter('all')) {
            $query = $this->_addFilter("delete oxobject2discount.* " . $this->_getQuery());
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($query);
        } elseif ($groupIds && is_array($groupIds)) {
            $groupIdsQuoted = implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($groupIds));
            $query = "delete from oxobject2discount where oxobject2discount.oxid in (" . $groupIdsQuoted . ") ";
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($query);
        }
    }
411952
public function remove($configOption)
    {
        $this->repository->git(sprintf('config --local --unset %s', $configOption));
        unset($this->configuration[$configOption]);
    }
804005
protected function process_value_change($oldvalue) {
        if ($this->dependentsetting->get_status() == base_setting::LOCKED_BY_PERMISSION ||
                $this->dependentsetting->get_status() == base_setting::LOCKED_BY_CONFIG) {
            // When setting is locked by permission or config do not apply dependencies.
            return false;
        }
        $prevalue = $this->dependentsetting->get_value();
        // If the setting is the desired value enact the dependency.
        $settingvalue = $this->setting->get_value();
        if ($this->evaluate_disabled_condition($settingvalue)) {
            // The dependent setting needs to be locked by hierachy and set to the
            // default value.
            $this->dependentsetting->set_status(base_setting::LOCKED_BY_HIERARCHY);

            // For checkboxes the default value is false, but when the setting is
            // locked, the value should inherit from the parent setting.
            if ($this->defaultvalue === false) {
                $this->dependentsetting->set_value($settingvalue);
            } else {
                $this->dependentsetting->set_value($this->defaultvalue);
            }
        } else if ($this->dependentsetting->get_status() == base_setting::LOCKED_BY_HIERARCHY) {
            // We can unlock the dependent setting.
            $this->dependentsetting->set_status(base_setting::NOT_LOCKED);
        }
        // Return true if the value has changed for the dependent setting.
        return ($prevalue != $this->dependentsetting->get_value());
    }
262406
public function cleanConfig(array $baseConfig, array ...$referenceConfigs): array
    {
        $cleanedConfig = $baseConfig;
        foreach ($referenceConfigs as $referenceConfig) {
            $cleanedConfig = $this->removeIdenticalValues($cleanedConfig, $referenceConfig);
        }

        return $this->sortConfig($cleanedConfig);
    }
176451
public function delete( $model, $config = [] ) {

		// Delete mappings
		Yii::$app->factory->get( 'modelFormService' )->deleteByModelId( $model->id );

		// Delete Fields
		Yii::$app->factory->get( 'formFieldService' )->deleteByFormId( $model->id );

		// Delete model
		return parent::delete( $model, $config );
	}
478558
protected function encodeConfigValue(ConfigValue $configValue)
	{
		return ($configValue->isDeduplicated()) ? $configValue->getVarName() : $this->encode($configValue->getValue());
	}
1039214
protected function getColumnValueSql(ColumnValue $colValue)
    {
        $column = $colValue->getColumn();
        $method = 'get' . $column->getPhpNative() . 'Sql';

        return $this->$method($colValue->getValue());
    }
2447
public function setConfig($config)
    {
        $configObject = $this->getConfig();

        if (is_object($config)) {
            $config = get_object_vars($config);
        }

        foreach ((array)$config as $key => $value) {
            $configObject->$key = $value;
        }

        return $this;
    }
1188150
public function removeValue(FieldValue $fieldValue)
    {
        if ($this->fieldValues->contains($fieldValue)) {
            $this->fieldValues->removeElement($fieldValue);
        }
    }
137996
protected function _filterField($fieldValue)
    {
        //usuwanie html i obcinanie zbyt długich ciągów
        return (new \Mmi\Filter\Truncate)->filter((new \Mmi\Filter\Escape)->filter($fieldValue));
    }
686447
public function removeGroup($group)
	{
		// Make sure there is a valid Form XML document.
		if (!($this->xml instanceof \SimpleXMLElement))
		{
			throw new \UnexpectedValueException(sprintf('%s::removeGroup `xml` is not an instance of SimpleXMLElement', get_class($this)));
		}

		// Get the fields elements for a given group.
		$elements = &$this->findGroup($group);

		foreach ($elements as &$element)
		{
			$dom = dom_import_simplexml($element);
			$dom->parentNode->removeChild($dom);
		}

		return true;
	}
266426
public function loadConfigValues(array $configValues) : array
    {
        if (!isset($configValues['master_language'])) {
            throw new Exception('Your configuration file must define a master_language');
        }

        if (
            !isset($configValues['languages']) ||
            !is_array($configValues['languages'])
        ) {
            throw new Exception('Your configuration file must define a set languages for translations');
        }

        if (
            !isset($configValues['paths']) ||
            !is_array($configValues['paths'])
        ) {
            throw new Exception('Your configuration file must define a set of paths where to find translations');
        }

        return $configValues;
    }
229745
public function remove($configOption = "remote.origin.url") {
        $this->repository->cmd(sprintf('config --local --unset %s', $configOption));

        //Open file Hgrc
        $fileConfig = fopen($this->repository->getDir() . "/.git/config", 'r');
        //Get contents
        $contents = file_get_contents($this->repository->getDir() . "/.git/config");
        //Delete [remote "origin"]
        $contents = str_ireplace('[remote "origin"]', null, $contents);
        //Delete blanc ligne
        $contents = trim($contents);

        fclose($fileConfig);
        //Re-write contents modify in hgrc
        $fileConfig = fopen($this->repository->getDir() . "/.git/config", 'w+');
        fwrite($fileConfig, $contents);

        fclose($fileConfig);
    }