Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeCategoryAssignmentments example
public
function
backlogRemoveArticle
(
$articleId
)
{
$this
->
getCategoryComponent
(
)
->
removeArticleAssignmentments
(
$articleId
)
;
}
/** * @param int $categoryId */
public
function
backlogRemoveCategory
(
$categoryId
)
{
$this
->
getCategoryComponent
(
)
->
removeCategoryAssignmentments
(
$categoryId
)
;
}
/** * @param int $categoryId */
public
function
backlogMoveCategory
(
$categoryId
)
{
$component
=
$this
->
getCategoryComponent
(
)
;
$component
->
rebuildCategoryPath
(
$categoryId
)
;
$component
->
removeOldAssignments
(
$categoryId
)
;