AttributeSetRepository
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
Constants
| ALIAS |
Alias for entity |
| ATTRIBUTE_ALIAS |
Alias for attribute entity |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Save multiple entities
Update multiple entities
Save multiple entities
Remove provided entity
Find all attribute sets
Find id and name of all attribute sets
Find all attribute sets(with attributes)
Find attribute set(with attribute and attribute values) by id
Find attribute set by category erp code
Find all attribute sets that match provided ids
No description
Find all attribute sets that match provided name
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
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
in JQGridTrait at line 61
array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)
JQGrid function
in JQGridTrait at line 94
array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
JQGrid function
at line 46
AttributeSet
save(AttributeSet $entity)
Persist new attribute set
at line 68
bool
saveAll(array $entities)
Save multiple entities
at line 86
AttributeSet
edit(AttributeSet $entity)
Update existing attribute value
at line 106
bool|string
updateMultiple(array $array, int $flushNumber = 30)
Update multiple entities
at line 139
bool|string
saveMultiple(array $array, int $flushNumber = 30)
Save multiple entities
at line 171
bool
remove(array $entities)
Remove provided entity
at line 196
array
getAll()
Find all attribute sets
at line 206
array
findAllAttributeSetsForProductPage()
Find id and name of all attribute sets
at line 218
array
findAllAttributeSetsWithAttributes()
Find all attribute sets(with attributes)
at line 238
AttributeSet
findAttributeSetByIdWithAttributes(int $id)
Find attribute set(with attribute and attribute values) by id
at line 264
array
findAttributeSetByCategoryErpCode(int $categoryErpCode, bool $includeSubCategories = false)
Find attribute set by category erp code
at line 304
mixed
getByPrimaryKey(AttributeSet $entity)
Find attribute set by provided id
at line 320
array
getDBAttributeSets(array $array)
Find all attribute sets that match provided ids
at line 334
EntityManager
getEntityManager()
at line 346
AttributeSet
getDBCSVAttributeSetForAttributes(string $categoryName)
Find all attribute sets that match provided name
at line 366
array
getAllAttributeSetErpCodes()
Find id and code of all attribute sets(Used in synchronization with erp)