/** * Finds most commented entities. * * @param string $entityType * @param integer $first * @param integer $count * @return array<BOL_CommentEntity> */ public function findMostCommentedEntityList($entityType, $first, $count) { $resultArray = $this->commentDao->findMostCommentedEntityList($entityType, $first, $count); $resultList = array(); foreach ($resultArray as $item) { $resultList[$item['id']] = $item; } return $resultList; }