class GroupHandler extends AbstractHandler (View source)

Handle operations with Group entities.

Properties

protected ObjectManager $objectManager from AbstractHandler

Methods

ObjectManager
getObjectManager()

No description

setObjectManager(ObjectManager $objectManager)

No description

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

int
cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

getGroup()

No description

$this
setGroup(Group $group)

No description

diff(Group $newGroup)

This method does not flush ORM. You'll need to manually call it.

Details

ObjectManager getObjectManager()

Return Value

ObjectManager

AbstractHandler setObjectManager(ObjectManager $objectManager)

Parameters

ObjectManager $objectManager

Return Value

AbstractHandler

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

Parameters

ObjectManager $objectManager

int cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

Parameters

bool $setPositions

Return Value

int Return the next position after the last entity

Group getGroup()

Return Value

Group

$this setGroup(Group $group)

Parameters

Group $group

Return Value

$this

diff(Group $newGroup)

This method does not flush ORM. You'll need to manually call it.

Parameters

Group $newGroup

Exceptions

RuntimeException If newGroup param is null