protected function updateProduct(Product $product)
 {
     $em = $this->doctrine->getManager();
     $repository = $em->getRepository('AppBundle:Review');
     $product->setRating($repository->getProductRating($product));
     $product->setReviewsCount($repository->getProductReviewsCount($product));
     $em->flush();
 }