class ProductAttributeValuesManager implements BasicEntityManagerInterface

Class ProductAttributeValuesManager is injected as alligator.product_attribute_values_manager service. ProductAttributeValuesManager handles the logic for managed entity.

Properties

protected ProductAttributeValuesRepository $repository
protected ProductEventContainer $eventContainer

Methods

__construct(ProductAttributeValuesRepository $repository, ProductEventContainer $eventContainer)

No description

findByErpCode(string $code)

Find product attribute values by erp code

array
getAllProductAttributeValueCodes()

Get product attribute values codes

boolean|string
saveMultiple(array $productAttrValues)

Persist new product attribute values from array with custom id

bool|string
updateMultiple(array $productAttrValues)

Merge array of product attribute values

bool|Proxy|null|object
getReference(string $class = ProductAttributeValues::class, int $id = null)

Find entity reference by its class name and id

Details

at line 37
__construct(ProductAttributeValuesRepository $repository, ProductEventContainer $eventContainer)

Parameters

ProductAttributeValuesRepository $repository
ProductEventContainer $eventContainer

at line 49
ProductAttributeValues findByErpCode(string $code)

Find product attribute values by erp code

Parameters

string $code

Return Value

ProductAttributeValues

at line 59
array getAllProductAttributeValueCodes()

Get product attribute values codes

Return Value

array

at line 70
boolean|string saveMultiple(array $productAttrValues)

Persist new product attribute values from array with custom id

Parameters

array $productAttrValues

Return Value

boolean|string

at line 81
bool|string updateMultiple(array $productAttrValues)

Merge array of product attribute values

Parameters

array $productAttrValues

Return Value

bool|string

at line 95
bool|Proxy|null|object getReference(string $class = ProductAttributeValues::class, int $id = null)

Find entity reference by its class name and id

Parameters

string $class
int $id

Return Value

bool|Proxy|null|object

Exceptions

InvalidArgumentException