src/Entity/WishlistProduct.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Address
  6. *
  7. * @ORM\Table(name="wishlists")
  8. * @ORM\Entity(repositoryClass="App\Repository\WishlistProductRepository")
  9. * @ORM\HasLifecycleCallbacks
  10. */
  11. class WishlistProduct
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Id
  17. * @ORM\Column(name="ID", type="integer")
  18. * @ORM\GeneratedValue(strategy="AUTO")
  19. */
  20. protected $id;
  21. /**
  22. * @ORM\ManyToOne(targetEntity="Customer")
  23. * @ORM\JoinColumn(name="customers_id", referencedColumnName="customers_id")
  24. */
  25. protected $customer;
  26. /**
  27. * @ORM\ManyToOne(targetEntity="Product")
  28. * @ORM\JoinColumn(name="products_id", referencedColumnName="products_id", nullable=true, onDelete="CASCADE")
  29. */
  30. protected $product;
  31. /**
  32. * @ORM\Column(name="CreatedAt", type="datetime")
  33. */
  34. protected $createdAt;
  35. public function getId() {
  36. return $this->id;
  37. }
  38. public function getCustomer() {
  39. return $this->customer;
  40. }
  41. public function getProduct() {
  42. return $this->product;
  43. }
  44. public function getCreatedAt() {
  45. return $this->createdAt;
  46. }
  47. public function setCustomer($customer) {
  48. $this->customer = $customer;
  49. }
  50. public function setProduct($product) {
  51. $this->product = $product;
  52. }
  53. public function setCreatedAt($createdAt) {
  54. $this->createdAt = $createdAt;
  55. }
  56. }