UnitOfMeasureRepository
class UnitOfMeasureRepository extends EntityRepository
Class UnitOfMeasureRepository is injected as alligator.unit_of_measure.repository service. UnitOfMeasureRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Alias for entity |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Delete multiple PrimaryKeyInterface entities by array of ids
Delete multiple PrimaryKeyInterface entities by values of field
Get reference to class
Save multiple entities
Edit multiple entities
Delete multiple enities
Flushes all changes to objects that have been queued up to now to the database.
Retrieve id, title and type for all unit of measures
Find all unit of measures that are type of WEIGHT
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 53
UnitOfMeasure
save(UnitOfMeasure $object)
Persist new unit of measure entity
at line 71
UnitOfMeasure
edit(UnitOfMeasure $object)
Update unit of measure
in BaseRepositoryTrait at line 69
bool
remove(PrimaryKeyInterface $object)
Delete PrimaryKeyInterface entity
in BaseRepositoryTrait at line 88
boolean
deleteMultipleByIds(array $ids)
Delete multiple PrimaryKeyInterface entities by array of ids
in BaseRepositoryTrait at line 101
boolean|string
deleteMultipleByField(string $field, array $values)
Delete multiple PrimaryKeyInterface entities by values of field
in BaseRepositoryTrait at line 130
mixed
getReference(int $id, string|null $class = null)
Get reference to class
in BaseRepositoryTrait at line 143
bool|string
saveMultiple(array $elements, int $flushNumber = 30)
Save multiple entities
in BaseRepositoryTrait at line 178
bool|string
updateMultiple(array $elements, int $flushNumber = 30)
Edit multiple entities
in BaseRepositoryTrait at line 213
bool|string
deleteMultiple(array $elements, int $flushNumber = 30)
Delete multiple enities
at line 38
saveChanges()
Flushes all changes to objects that have been queued up to now to the database.
at line 84
array
findAllForList()
Retrieve id, title and type for all unit of measures
at line 97
array
findAllWeightMeasures()
Find all unit of measures that are type of WEIGHT