CategoryRepositoryDeleterInterface

Extends

Interface CategoryRepositoryDeleterInterface

This interface defines methods for deleting category records from the database and is used in the category repository among the interfaces for writing and reading category records.

category

System

package

Category

subpackage

Interfaces

Methods

Deletes a category based on the ID provided.

deleteById(\IdType $categoryId) 

Arguments

$categoryId

\IdType

Category ID.

Deletes related products of given category.

deleteRelatedProductsOfCategory(\IdCollection $categoryIds) : $this|\CategoryRepositoryDeleterInterface

All products that are only connected to the given category gets removed.

Arguments

$categoryIds

\IdCollection

Ids of categories with products to be removed.

Response

$this|\CategoryRepositoryDeleterInterface

Same instance for chained method calls.