public function fetchAllIds($planId) { $resultSet = $this->getDbTable()->fetchAllIds($planId); $arrayIds = null; foreach($resultSet as $row) { $contactId = $row->contactId; $users = new System_Models_UserMapper(); $userId = $users->getUserIdById($contactId); $arrayIds[] = $userId; } return $arrayIds; }