GroupRepository
class GroupRepository extends EntityRepository
Class GroupRepository is injected as alligator.group_repository service. GroupRepository is used for crud operation for entity.
Use this class to work with database.
Constants
| USERS_GROUP |
|
| COMPANY_GROUP |
|
| ROLE_ALIAS |
Alias for role entity |
| ALIAS |
Alias for entity |
| GROUP_USER_TABLE_NAME |
|
| GROUP_USER_TABLE_GROUP_COLUMN |
|
| ADMIN_ROLE |
|
Methods
array
findAllGroups()
Get all groups
array
findAllGroupsFromArray(array $groups)
Get all groups
mixed
bool
Group|Proxy|null|object
getReference(int $id)
No description
boolean
changeUsersGroup(int $oldGroupId, int $newGroupId)
No description
Details
at line 48
array
findAllGroups()
Get all groups
at line 62
array
findAllGroupsFromArray(array $groups)
Get all groups
at line 79
findGroupByUser(User $user)
Utility override to be used by the UserManager {@inheritDoc}
at line 98
mixed
findGroupForUser(User $user)
Find group that correspond to provided user type
at line 150
bool
removeGroup(Group $group)
Remove group