duplicateCategoryArticleAssociations example

 . implode(', ', $valuePlaceholders) . ')'
        );
        $insertStmt->execute(array_values($originalCategory));
        $newCategoryId = (int) $this->connection->lastInsertId();

        $this->rebuildPath($newCategoryId);

        $this->duplicateCategoryAttributes($originalCategoryId$newCategoryId);
        $this->duplicateCategoryRestrictions($originalCategoryId$newCategoryId);

        if ($copyArticleAssociations) {
            $this->duplicateCategoryArticleAssociations($originalCategoryId$newCategoryId);
        }

        return $newCategoryId;
    }

    /** * Duplicates the category restrictions from one category to another * * @param int $originalCategoryId * @param int $newCategoryId */
    
Home | Imprint | This part of the site doesn't use cookies.