ProductRelationshipEventContainer
class ProductRelationshipEventContainer
Class ProductRelationshipEventContainer is injected as empire_product_relationship_plugin.event_container. This container is connecting ProductRelationshipManager manager to other services
Methods
ProductRelationshipEventContainer constructor.
Find product reference by id
Get database categories from array
Find collection of products
Find collection of products
Get all relationship names
Get relationship names for specified product
Get reference to ProductRelationshipName
Find products by category id
Create product reference
Create category reference
Create product relationship name reference
Get product relationship settings
Create single entity relationship reference
Signal re-order product priorities
Signal product.relationship.show.unavailable event
Find id of products in database for provided array of ids
Details
at line 33
__construct(ContainerInterface $container)
ProductRelationshipEventContainer constructor.
at line 44
array
doProductSearch(ProductSearchWrapper $searchWrapper)
Search for products
at line 55
Product
getProductRelationship(int $productId)
Find product reference by id
at line 66
array|QueryBuilder
getCategoriesGroup(array|ArrayCollection $categories)
Get database categories from array
at line 77
array
getProductsCollection(array $products)
Find collection of products
at line 87
array
getRelationProductsCollection(array|ArrayCollection $products)
Find collection of products
at line 101
array
getRelationshipNames()
Get all relationship names
at line 113
array
getRelationshipNamesForProduct(int $id, bool $settings)
Get relationship names for specified product
at line 126
ProductRelationshipName
getRelationshipNameReference(int $id)
Get reference to ProductRelationshipName
at line 137
array|QueryBuilder
getProductsForCategory(int $id)
Find products by category id
at line 149
Product
getReferenceForProduct(int $productId)
Create product reference
at line 160
Category
getReferenceForCategory(int $categoryId)
Create category reference
at line 173
ProductRelationshipName
getReferenceForProductRelationshipName(int $relId)
Create product relationship name reference
at line 182
bool
getRelationshipSettingsForMainProduct()
Get product relationship settings
at line 193
bool|Proxy|null|object
getReferenceForProductEntityRelationship(int $id)
Create single entity relationship reference
at line 202
dispatchReorderProductPriorities(int $priority)
Signal re-order product priorities
at line 213
bool
dispatchShowUnavailableEvent()
Signal product.relationship.show.unavailable event
at line 227
array
findProductsMissingFromDbCSVImport(array $productArray)
Find id of products in database for provided array of ids