class AttributeSetRepository extends EntityRepository

Class AttributeSetRepository is injected as alligator.attribute_set_repository service. AttributeSetRepository is used for crud operation for entity.

Use this class to work with database.

Traits

Trait JQGridTrait

Constants

ALIAS

Alias for entity

ATTRIBUTE_ALIAS

Alias for attribute entity

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

save(AttributeSet $entity)

Persist new attribute set

bool
saveAll(array $entities)

Save multiple entities

edit(AttributeSet $entity)

Update existing attribute value

bool|string
updateMultiple(array $array, int $flushNumber = 30)

Update multiple entities

bool|string
saveMultiple(array $array, int $flushNumber = 30)

Save multiple entities

bool
remove(array $entities)

Remove provided entity

array
getAll()

Find all attribute sets

array
findAllAttributeSetsForProductPage()

Find id and name of all attribute sets

array
findAllAttributeSetsWithAttributes()

Find all attribute sets(with attributes)

findAttributeSetByIdWithAttributes(int $id)

Find attribute set(with attribute and attribute values) by id

array
findAttributeSetByCategoryErpCode(int $categoryErpCode, bool $includeSubCategories = false)

Find attribute set by category erp code

mixed
getByPrimaryKey(AttributeSet $entity)

Find attribute set by provided id

array
getDBAttributeSets(array $array)

Find all attribute sets that match provided ids

EntityManager
getEntityManager()

No description

getDBCSVAttributeSetForAttributes(string $categoryName)

Find all attribute sets that match provided name

array
getAllAttributeSetErpCodes()

Find id and code of all attribute sets(Used in synchronization with erp)

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 46
AttributeSet save(AttributeSet $entity)

Persist new attribute set

Parameters

AttributeSet $entity

Return Value

AttributeSet

at line 68
bool saveAll(array $entities)

Save multiple entities

Parameters

array $entities

Return Value

bool

Exceptions

ORMException
OptimisticLockException

at line 86
AttributeSet edit(AttributeSet $entity)

Update existing attribute value

Parameters

AttributeSet $entity

Return Value

AttributeSet

at line 106
bool|string updateMultiple(array $array, int $flushNumber = 30)

Update multiple entities

Parameters

array $array
int $flushNumber

Return Value

bool|string

at line 139
bool|string saveMultiple(array $array, int $flushNumber = 30)

Save multiple entities

Parameters

array $array
int $flushNumber

Return Value

bool|string

at line 171
bool remove(array $entities)

Remove provided entity

Parameters

array $entities

Return Value

bool

at line 196
array getAll()

Find all attribute sets

Return Value

array

at line 206
array findAllAttributeSetsForProductPage()

Find id and name of all attribute sets

Return Value

array

at line 218
array findAllAttributeSetsWithAttributes()

Find all attribute sets(with attributes)

Return Value

array

at line 238
AttributeSet findAttributeSetByIdWithAttributes(int $id)

Find attribute set(with attribute and attribute values) by id

Parameters

int $id

Return Value

AttributeSet

Exceptions

NoResultException
NonUniqueResultException

at line 264
array findAttributeSetByCategoryErpCode(int $categoryErpCode, bool $includeSubCategories = false)

Find attribute set by category erp code

Parameters

int $categoryErpCode
bool $includeSubCategories

Return Value

array

Exceptions

DBALException

at line 304
mixed getByPrimaryKey(AttributeSet $entity)

Find attribute set by provided id

Parameters

AttributeSet $entity

Return Value

mixed

Exceptions

NoResultException
NonUniqueResultException

at line 320
array getDBAttributeSets(array $array)

Find all attribute sets that match provided ids

Parameters

array $array

Return Value

array

at line 334
EntityManager getEntityManager()

Return Value

EntityManager

at line 346
AttributeSet getDBCSVAttributeSetForAttributes(string $categoryName)

Find all attribute sets that match provided name

Parameters

string $categoryName

Return Value

AttributeSet

at line 366
array getAllAttributeSetErpCodes()

Find id and code of all attribute sets(Used in synchronization with erp)

Return Value

array