source/Application/Model/Article.php
protected function _updateParentDependFields()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        foreach ($this->_getCopyParentFields() as $sField) {
            $sValue = isset($this->$sField->value) ? $this->$sField->value : 0;
            $sSqlSets[] = '`' . str_replace('oxarticles__', '', $sField) . '` = ' . $oDb->quote($sValue);
        }

        $sSql = "UPDATE `oxarticles` SET ";
        $sSql .= implode(', ', $sSqlSets) . '';
        $sSql .= " WHERE `oxparentid` = " . $oDb->quote($this->getId());

        return $oDb->execute($sSql);
    }
protected function _updateParentDependFields()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        foreach ($this->_getCopyParentFields() as $sField) {
            $sValue = isset($this->$sField->value) ? $this->$sField->value : 0;
            $sSqlSets[] = '`' . str_replace('oxarticles__', '', $sField) . '` = ' . $oDb->quote($sValue);
        }

        $sSql = "UPDATE `oxarticles` SET ";
        $sSql .= implode(', ', $sSqlSets) . '';
        $sSql .= " WHERE `oxparentid` = " . $oDb->quote($this->getId());

        return $oDb->execute($sSql);
    }
protected function _updateParentDependFields ( ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; foreach ( $ this -> _getCopyParentFields ( ) as $ sField ) { $ sValue = isset ( $ this -> $ sField -> value ) ? $ this -> $ sField -> value : 0 ; $ sSqlSets [ ] = '`' . str_replace ( 'oxarticles__' , '' , $ sField ) . '` = ' . $ oDb -> quote ( $ sValue ) ; } $ sSql = "UPDATE `oxarticles` SET " ; $ sSql .= implode ( ', ' , $ sSqlSets ) . '' ; $ sSql .= " WHERE `oxparentid` = " . $ oDb -> quote ( $ this -> getId ( ) ) ; return $ oDb -> execute ( $ sSql ) ; }
Set parent field value to child - variants in DB

@return bool
Set parent field value to child - variants in DB