public function findAll($page = 1, $max = 50)
    {
        $offset = (($page - 1) * $max);
        $products = $this->getEm()->getRepository("AmulenShopBundle:Product")->findBy(array(), array(), $max, $offset);
        return $products;
    }