public function getChatConversationIdWithUserByIdList($userId, $userIdList) { $result = array(); $conversationIdList = $this->conversationDao->findChatConversationIdWithUserByIdList($userId, $userIdList); foreach ($conversationIdList as $conversationInfo) { $result[$conversationInfo['opponentId']] = $conversationInfo['id']; } return $result; }