EntityRelationshipManager
class EntityRelationshipManager implements BasicEntityManagerInterface
Class EntityRelationshipManager is injected as empire_product_entity_relationship_plugin.manager service. EntityRelationshipManager handles the logic for managed entity.
Properties
| protected ProductEntityRelationshipRepository | $repository | ||
| protected ProductRelationshipEventContainer | $container |
Methods
No description
Find product relationship by product id
Find product relationship by product and relationship entity id
Find entity relationship name for product id
Create references to all foreign entities and save or edit entity relationship
Remove entity relationship by id
Details
at line 37
__construct(ProductEntityRelationshipRepository $repository, ProductRelationshipEventContainer $container)
at line 49
ProductEntityRelationship
getEntityRelationshipForProduct(int $productId)
Find product relationship by product id
at line 61
array
getSingleEntityRelationshipForProduct(int $productId, int $entityId)
Find product relationship by product and relationship entity id
at line 72
array
getEntityRelationshipNameForProduct(int $productId)
Find entity relationship name for product id
at line 83
PrimaryKeyInterface
saveProductEntityRelationship(array $content)
Create references to all foreign entities and save or edit entity relationship
at line 129
bool|mixed
removeProductEntityRelationship(int $id)
Remove entity relationship by id