protected function init() { parent::init(); $this->userMapper = UserMapper::makeInstance(); $this->depMapper = DepartmentMapper::makeInstance(); $this->groupMapper = GroupMapper::makeInstance(); }
/** @return GroupEntity */ function loadGroups($userPk) { return GroupMapper::makeInstance()->innerJoin('cores_group_user gu ON gu.groupFk=gp.pk AND gu.userFk=' . intval($userPk))->getAll(); }