class PricelistItemRepository extends EntityRepository

Class PricelistItemRepository is injected as alligator_pricelist_item.repository service. PricelistItemRepository is used for crud operation for entity.

Use this class to work with database.

Constants

ALIAS

Alias for main entity

PRODUCT_ALIAS

Alias for product

PRICELIST_ALIAS

Alias for pricelist

Methods

edit(PricelistItem $pricelistItem)

Edit PricelistItem

save(PricelistItem $pricelistItem)

Save PricelistItem

flush(mixed $entity = null)

Flush changes to db

getPricelistItemByProductAndList(array $data)

Get single pricelist item for specified product and pricelist

Details

at line 48
PricelistItem edit(PricelistItem $pricelistItem)

Edit PricelistItem

Parameters

PricelistItem $pricelistItem

Return Value

PricelistItem

at line 66
PricelistItem save(PricelistItem $pricelistItem)

Save PricelistItem

Parameters

PricelistItem $pricelistItem

Return Value

PricelistItem

at line 82
flush(mixed $entity = null)

Flush changes to db

Parameters

mixed $entity

at line 95
PricelistItem getPricelistItemByProductAndList(array $data)

Get single pricelist item for specified product and pricelist

Parameters

array $data

Return Value

PricelistItem

Exceptions

NonUniqueResultException