public function addSimpleProduct(\Club\ShopBundle\Entity\CartProduct $product) { // will not add product attribute $prod = new \Club\ShopBundle\Entity\OrderProduct(); $prod->setOrder($this->order); $prod->setPrice($product->getPrice()); $prod->setQuantity($product->getQuantity()); $prod->setProductName($product->getProductName()); $prod->setType($product->getType()); $this->order->addOrderProduct($prod); $this->em->persist($prod); }