We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f7025 commit 6bda03bCopy full SHA for 6bda03b
Entity/CartProduct.php
@@ -34,7 +34,7 @@ class CartProduct
34
35
/**
36
* @ORM\ManyToOne(targetEntity="\Alpixel\Bundle\ShopBundle\Entity\Product", cascade={"persist"})
37
- * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
+ * @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
38
*/
39
private $product;
40
0 commit comments