class ShippingRepository extends EntityRepository

Class ShippingRepository is injected as alligator.shipping_repository service. ShippingRepository is used for crud operation for managed entity.

Use this class to work with database.

Traits

Trait JQGridTrait

Constants

ALIAS

Alias for shipping provider

Methods

jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

All joins used in select.

jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

Should contain group by which jqgrid uses.

array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)

JQGrid function

array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

array
getAllShippings()

Find all shipping providers

getDBShipping(ShippingProvider $shipping)

Find shipping provider by id

array
getAllShippingWithSelect()

Find all shipping providers

saveShippingRepository(ShippingProvider $entity)

Persist new shipping provider

editShippingRepository(ShippingProvider $entity)

Merge sipping provider

deleteFromShippingRepository(array $shippings)

Remove shipping provireds provided by array

ShippingProvider|bool|Proxy|null|object
getReference(int $id)

Find shipping provider reference by id

array
getAllShippingErpCodes()

Find all shipping provider ids and codes

bool|string
saveCollection(array $collection)

Persist collection of shipping providers

Details

in JQGridTrait at line 27
jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

All joins used in select.

Override in the repository class if needed. Should do nothing otherwise

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

in JQGridTrait at line 42
jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

Should contain group by which jqgrid uses.

Override in the repository class if needed. Should do nothing otherwise

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

in JQGridTrait at line 61
array findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)

JQGrid function

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

array

in JQGridTrait at line 94
array searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

Parameters

array $searchParams
array $sortParams
bool $isCountSearch
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

array

at line 38
array getAllShippings()

Find all shipping providers

Return Value

array

at line 49
ShippingProvider getDBShipping(ShippingProvider $shipping)

Find shipping provider by id

Parameters

ShippingProvider $shipping

Return Value

ShippingProvider

at line 58
array getAllShippingWithSelect()

Find all shipping providers

Return Value

array

at line 83
ShippingProvider saveShippingRepository(ShippingProvider $entity)

Persist new shipping provider

Parameters

ShippingProvider $entity

Return Value

ShippingProvider

Exceptions

Exception

at line 104
ShippingProvider editShippingRepository(ShippingProvider $entity)

Merge sipping provider

Parameters

ShippingProvider $entity

Return Value

ShippingProvider

Exceptions

Exception

at line 126
ShippingProvider deleteFromShippingRepository(array $shippings)

Remove shipping provireds provided by array

Parameters

array $shippings

Return Value

ShippingProvider

Exceptions

ORMException
OptimisticLockException

at line 148
ShippingProvider|bool|Proxy|null|object getReference(int $id)

Find shipping provider reference by id

Parameters

int $id

Return Value

ShippingProvider|bool|Proxy|null|object

Exceptions

ORMException

at line 157
array getAllShippingErpCodes()

Find all shipping provider ids and codes

Return Value

array

at line 171
bool|string saveCollection(array $collection)

Persist collection of shipping providers

Parameters

array $collection

Return Value

bool|string