ProductRepositoryDeleter

Implements \ProductRepositoryDeleterInterface

Class ProductRepositoryDeleter

category

System

package

Product

subpackage

Repositories

Methods

ProductRepositoryDeleter constructor.

__construct(\CI_DB_query_builder $db, \ProductRepositoryDeleteHelper $deleteHelper) 

Arguments

$db

\CI_DB_query_builder

Removes related additional field records by the given product id.

_removeAdditionalFieldRelationsByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes related feature set records by the given product id.

_removeFeatureSetsByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes records from all dynamic personal_offer_by_customer_status_ tables by the given product id.

_removePersonalOffersByCustomerStatusByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes related property records by the given product id.

_removePropertiesByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes records by products id in all related tables.

_removeRecordsByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes review records by the given product id.

_removeReviewsByProductId(\IdType $productId) : $this|\ProductRepositoryDeleter

Arguments

$productId

\IdType

Product id of records to be removed.

Response

$this|\ProductRepositoryDeleter

Same instance for chained method calls.

Removes a product by the given product id.

deleteById(\IdType $productId) : \ProductRepositoryDeleter

Arguments

$productId

\IdType

Id of product entity.

Response

\ProductRepositoryDeleter

Same instance for chained method calls.

Properties

Database connection.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

deleteHelper

deleteHelper : \ProductRepositoryDeleteHelper