/** * Gets all the users assigned to this project's group */ public function getUsers() { $groupUsers = new ArrayObject(); $group = $this->getGroup(); if ($group != null) { $users = $this->groupService->getUsersInGroup($this->getGroup(), true); foreach ($users as $user) { $groupUsers[$user->id] = $user; } } return $groupUsers; }