source/Internal/Review/Dao/ReviewDao.php
public function getReviewsByUserId($userId)
    {
        $queryBuilder = $this->queryBuilderFactory->create();
        $queryBuilder
            ->select('r.*')
            ->from('oxreviews', 'r')
            ->where('r.oxuserid = :userId')
            ->orderBy('r.oxcreate', 'DESC')
            ->setParameter('userId', $userId);

        return $this->mapReviews($queryBuilder->execute()->fetchAll());
    }
public function getReviewsByUserId($userId)
    {
        $queryBuilder = $this->queryBuilderFactory->create();
        $queryBuilder
            ->select('r.*')
            ->from('oxreviews', 'r')
            ->where('r.oxuserid = :userId')
            ->orderBy('r.oxcreate', 'DESC')
            ->setParameter('userId', $userId);

        return $this->mapReviews($queryBuilder->execute()->fetchAll());
    }
public function getReviewsByUserId ( $ userId ) { $ queryBuilder = $ this -> queryBuilderFactory -> create ( ) ; $ queryBuilder -> select ( 'r.*' ) -> from ( 'oxreviews' , 'r' ) -> where ( 'r.oxuserid = :userId' ) -> orderBy ( 'r.oxcreate' , 'DESC' ) -> setParameter ( 'userId' , $ userId ) ; return $ this -> mapReviews ( $ queryBuilder -> execute ( ) -> fetchAll ( ) ) ; }
Returns User Reviews.

@param string $userId

@return ArrayCollection
Returns User Reviews .