Class ProductAttributeRepositoryDeleter

Class ProductAttributeRepositoryDeleter

ProductAttributeRepositoryDeleter implements ProductAttributeRepositoryDeleterInterface

Methods summary

public __construct( CI_DB_query_builder $db )

Initialize the product attribute repository deleter.

public deleteAttributeById( IdType $productAttributeId ) : ProductAttributeRepositoryDeleter|ProductAttributeRepositoryDeleter

Removes a product attribute entity by the given product attribute id.

public deleteAttributesByProductId( IdType $productId ) : ProductAttributeRepositoryDeleter|ProductAttributeRepositoryDeleter

Removes all product attributes entities that belongs to the given product entity id.

Properties summary

protected $db : CI_DB_query_builder

		
protected $tableName : string
'products_attributes'