class ProductRelationshipNameManager implements BasicEntityManagerInterface

Class ProductRelationshipNameManager is injected as empire_product_relationship_name_plugin.manager service. ProductRelationshipNameManager handles the logic for managed entity.

Properties

protected ProductRelationshipNameRepository $repository
protected ProductRelationshipEventContainer $container

Methods

array
getRelationshipNames()

Get all relationship names

array
getRelationshipNamesForProduct(int $id, bool $settings)

Get relationship names for specified product

getRelationshipNameReference(int $id)

Get reference to ProductRelationshipName

saveRelationshipName(ProductRelationshipName $relationshipName)

Save new ProductRelationshipName

array|bool
deleteRelationshipName(int $id)

Delete relationship name with specified id

editRelationshipName(stdClass $data)

Edit ProductRelationshipName

getRelationshipNameByPk(int $id)

Get Relationship name entity by id

dispatchReorderProductPriorities(int $priority)

Signal re-order product priorities

reorderProductPriorities(int $priority)

Reorder product priorities

bool
changeOrder(array $array)

Update relationship name priorities

getReference(int $id)

Get reference to ProductRelationshipName

array
getRelationshipNamesByName(string $name)

Get all relationship names with specified name

bool|string
saveMultiple(array $relNames)

Save multiple names

bool|string
updateMultiple(array $relNames)

Merge multiple names

Details

at line 47
array getRelationshipNames()

Get all relationship names

Return Value

array

at line 59
array getRelationshipNamesForProduct(int $id, bool $settings)

Get relationship names for specified product

Parameters

int $id
bool $settings

Return Value

array

at line 72
ProductRelationshipName getRelationshipNameReference(int $id)

Get reference to ProductRelationshipName

Parameters

int $id

Return Value

ProductRelationshipName

Exceptions

ORMException

at line 85
ProductRelationshipName saveRelationshipName(ProductRelationshipName $relationshipName)

Save new ProductRelationshipName

Parameters

ProductRelationshipName $relationshipName

Return Value

ProductRelationshipName

Exceptions

ConstraintViolationException

at line 99
array|bool deleteRelationshipName(int $id)

Delete relationship name with specified id

Parameters

int $id

Return Value

array|bool

Exceptions

ORMException

at line 113
ProductRelationshipName editRelationshipName(stdClass $data)

Edit ProductRelationshipName

Parameters

stdClass $data

Return Value

ProductRelationshipName

Exceptions

NoResultException
NonUniqueResultException

at line 134
ProductRelationshipName getRelationshipNameByPk(int $id)

Get Relationship name entity by id

Parameters

int $id

Return Value

ProductRelationshipName

Exceptions

NoResultException
NonUniqueResultException

at line 143
dispatchReorderProductPriorities(int $priority)

Signal re-order product priorities

Parameters

int $priority

at line 154
reorderProductPriorities(int $priority)

Reorder product priorities

Parameters

int $priority

Exceptions

DBALException

at line 165
bool changeOrder(array $array)

Update relationship name priorities

Parameters

array $array

Return Value

bool

at line 178
ProductRelationshipName getReference(int $id)

Get reference to ProductRelationshipName

Parameters

int $id

Return Value

ProductRelationshipName

Exceptions

ORMException

at line 189
array getRelationshipNamesByName(string $name)

Get all relationship names with specified name

Parameters

string $name

Return Value

array

at line 200
bool|string saveMultiple(array $relNames)

Save multiple names

Parameters

array $relNames

Return Value

bool|string

at line 211
bool|string updateMultiple(array $relNames)

Merge multiple names

Parameters

array $relNames

Return Value

bool|string