public function clickIncrement(Product $product) { $product->setClick($product->getClick() + 1); $this->em->persist($product); $this->em->flush(); }