protected function saveCategoryEntity(array $entityRowsIn, array $entityRowsUp)
    {
        if ($entityRowsIn) {
            if ($this->categoryImportVersionFeature) {
                $entityRowsIn = $this->categoryImportVersionFeature->processCategory($entityRowsIn);
            }

            $this->_connection->insertMultiple($this->entityTable, $entityRowsIn);
        }

        if ($entityRowsUp) {
            $this->_connection->insertOnDuplicate(
                $this->entityTable,
                $entityRowsUp,
                [CategoryModel::KEY_PARENT_ID, CategoryModel::KEY_PATH, CategoryModel::KEY_POSITION, CategoryModel::KEY_LEVEL, 'children_count']
            );
        }

        return $this;
    }
protected function saveCategoryEntity(array $entityRowsIn, array $entityRowsUp)
    {
        if ($entityRowsIn) {
            if ($this->categoryImportVersionFeature) {
                $entityRowsIn = $this->categoryImportVersionFeature->processCategory($entityRowsIn);
            }

            $this->_connection->insertMultiple($this->entityTable, $entityRowsIn);
        }

        if ($entityRowsUp) {
            $this->_connection->insertOnDuplicate(
                $this->entityTable,
                $entityRowsUp,
                [CategoryModel::KEY_PARENT_ID, CategoryModel::KEY_PATH, CategoryModel::KEY_POSITION, CategoryModel::KEY_LEVEL, 'children_count']
            );
        }

        return $this;
    }
protected function saveCategoryEntity ( array $ entityRowsIn , array $ entityRowsUp ) { if ( $ entityRowsIn ) { if ( $ this -> categoryImportVersionFeature ) { $ entityRowsIn = $ this -> categoryImportVersionFeature -> processCategory ( $ entityRowsIn ) ; } $ this -> _connection -> insertMultiple ( $ this -> entityTable , $ entityRowsIn ) ; } if ( $ entityRowsUp ) { $ this -> _connection -> insertOnDuplicate ( $ this -> entityTable , $ entityRowsUp , [ CategoryModel :: KEY_PARENT_ID , CategoryModel :: KEY_PATH , CategoryModel :: KEY_POSITION , CategoryModel :: KEY_LEVEL , 'children_count' ] ) ; } return $ this ; }
Update and insert data in entity table.

@param array $entityRowsIn Row for insert
@param array $entityRowsUp Row for update
@return $this
Update and insert data in entity table .