protected function _prepareRowForDb(array $rowData)
    {
        $rowData = parent::_prepareRowForDb($rowData);
        if (Import::BEHAVIOR_DELETE == $this->getBehavior()) {
            return $rowData;
        }

        if (self::SCOPE_DEFAULT == $this->getRowScope($rowData)) {
            $rowData[CategoryModel::KEY_NAME] = $this->getCategoryName($rowData);

            if (!isset($rowData[CategoryModel::KEY_POSITION])) {
                // diglin - prevent warning message
                $rowData[CategoryModel::KEY_POSITION] = 10000;
            }
        }

        return $rowData;
    }
protected function _prepareRowForDb(array $rowData)
    {
        $rowData = parent::_prepareRowForDb($rowData);
        if (Import::BEHAVIOR_DELETE == $this->getBehavior()) {
            return $rowData;
        }

        if (self::SCOPE_DEFAULT == $this->getRowScope($rowData)) {
            $rowData[CategoryModel::KEY_NAME] = $this->getCategoryName($rowData);

            if (!isset($rowData[CategoryModel::KEY_POSITION])) {
                // diglin - prevent warning message
                $rowData[CategoryModel::KEY_POSITION] = 10000;
            }
        }

        return $rowData;
    }
protected function _prepareRowForDb ( array $ rowData ) { $ rowData = parent :: _prepareRowForDb ( $ rowData ) ; if ( Import :: BEHAVIOR_DELETE == $ this -> getBehavior ( ) ) { return $ rowData ; } if ( self :: SCOPE_DEFAULT == $ this -> getRowScope ( $ rowData ) ) { $ rowData [ CategoryModel :: KEY_NAME ] = $ this -> getCategoryName ( $ rowData ) ; if ( ! isset ( $ rowData [ CategoryModel :: KEY_POSITION ] ) ) { // diglin - prevent warning message $ rowData [ CategoryModel :: KEY_POSITION ] = 10000 ; } } return $ rowData ; }
Set valid attribute set and category type to rows with all scopes
to ensure that existing Categories doesn't changed.

@param array $rowData
@return array
Set valid attribute set and category type to rows with all scopes to ensure that existing Categories doesn t changed .