public function showVariationsAction(Request $request = null)
{
$id = $request->get($this->admin->getIdParameter());
if (!($product = $this->admin->getObject($id))) {
throw new NotFoundHttpException('Product not found.');
}
return $this->render('SonataProductBundle:ProductAdmin:variations.html.twig', array('product' => $product));
}