public function get($productId)
{
// Product
try {
$qb = $this->createQueryBuilder('p')->andWhere('p.id = :id');
$product = $qb->getQuery()->setParameters(array('id' => $productId))->getSingleResult();
} catch (NoResultException $e) {
throw new NotFoundHttpException();
}
return $product;
}