source/Core/Model/BaseModel.php
protected function _setUpdateSeoOnFieldChange($fieldName)
    {
        if ($this->getId() && in_array($fieldName, $this->getFieldNames())) {
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $tableName = $this->getCoreTableName();
            $quotedOxid = $database->quote($this->getId());
            $title = $database->getOne("select `{$fieldName}` from `{$tableName}` where `oxid` = {$quotedOxid}");
            $fieldValue = "{$tableName}__{$fieldName}";
            $currentTime = $this->$fieldValue->value;

            if ($title == $currentTime) {
                $this->setUpdateSeo(false);
            }
        }
    }
protected function _setUpdateSeoOnFieldChange($fieldName)
    {
        if ($this->getId() && in_array($fieldName, $this->getFieldNames())) {
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $tableName = $this->getCoreTableName();
            $quotedOxid = $database->quote($this->getId());
            $title = $database->getOne("select `{$fieldName}` from `{$tableName}` where `oxid` = {$quotedOxid}");
            $fieldValue = "{$tableName}__{$fieldName}";
            $currentTime = $this->$fieldValue->value;

            if ($title == $currentTime) {
                $this->setUpdateSeo(false);
            }
        }
    }
protected function _setUpdateSeoOnFieldChange ( $ fieldName ) { if ( $ this -> getId ( ) && in_array ( $ fieldName , $ this -> getFieldNames ( ) ) ) { $ database = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ tableName = $ this -> getCoreTableName ( ) ; $ quotedOxid = $ database -> quote ( $ this -> getId ( ) ) ; $ title = $ database -> getOne ( "select `{$fieldName}` from `{$tableName}` where `oxid` = {$quotedOxid}" ) ; $ fieldValue = "{$tableName}__{$fieldName}" ; $ currentTime = $ this -> $ fieldValue -> value ; if ( $ title == $ currentTime ) { $ this -> setUpdateSeo ( false ) ; } } }
Checks whether certain field has changed, and sets update seo flag if needed.
It can only set the value to false, so it allows for multiple calls to the method,
and if atleast one requires seo update, other checks won't override that.

@param string $fieldName Field name that will be checked
Checks whether certain field has changed and sets update seo flag if needed . It can only set the value to false so it allows for multiple calls to the method and if atleast one requires seo update other checks won t override that .