ProductAttributeValuesRepository
class ProductAttributeValuesRepository extends EntityRepository
Class ProductAttributeValuesRepository is injected as alligator.product_attribute_values_repository service. ProductAttributeValuesRepository is used for crud operation for managed entity.
Use this class to work with database.
Constants
| ALIAS |
Alias for product attribute values |
| ATTRIBUTE_ALIAS |
Alias for attribute |
| ATTRIBUTE_VALUE_ALIAS |
Alias for attribute value |
| TABLE_NAME |
Table name of product attribute values entity |
| QUANTITY_ROW |
Product attribute values field (quantity) |
| RESERVED_QUANTITY_ROW |
Product attribute values field (reservedQuantity) |
| TOTAL_QUANTITY_ROW |
Product attribute values field (totalQuantity) |
Methods
Change default product attribute value of product by their ids
Find images for specific product attribute values
Find entity reference by its class name and id
Find product by product attribute values id
Find product attribute values by erp code
Persist new product attribute values from array
Get product attribute values codes
Persist new product attribute values from array with custom id
Merge array of product attribute values
Details
at line 89
ProductAttributeValues
saveProductAttributeValues(ProductAttributeValues $entity)
Persist new product attribute vales
at line 109
ProductAttributeValues
editProductAttributeValues(ProductAttributeValues $entity)
Merge product attribute vales
at line 130
bool
changeDefaultProductAttributeValues(int $productId, int $pavId)
Change default product attribute value of product by their ids
at line 147
bool
removeProductAttributeValues(ProductAttributeValues $entity)
Remove product attribute values
at line 166
updateQty(ProductAttributeValues $pav)
Update product attribute values quantities
at line 184
ArrayCollection
getImagesForProductAttributeValue(int $pavId)
Find images for specific product attribute values
at line 205
bool|Proxy|null|object
getReference(string $class = ProductAttributeValues::class, int $id = null)
Find entity reference by its class name and id
at line 223
ProductAttributeValues
getProductForAttrVal(int $id)
Find product by product attribute values id
at line 241
ProductAttributeValues
findByErpCode(string $code)
Find product attribute values by erp code
at line 262
array
savePavsFromArray(array $objectList)
Persist new product attribute values from array
at line 296
array
getAllProductAttributeValueCodes()
Get product attribute values codes
at line 311
bool|string
saveMultiple(array $attributeValues, int $flushNumber = 30)
Persist new product attribute values from array with custom id
at line 342
bool|string
updateMultiple(array $attributeValues, int $flushNumber = 30)
Merge array of product attribute values