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