<?phpnamespace App\Entity;use App\Repository\ProductWishlistRepository;use Doctrine\ORM\Mapping as ORM;use DateTime;use App\Entity\Product;use App\Entity\Wishlist;/** * @ORM\Entity(repositoryClass=ProductWishlistRepository::class) */class ProductWishlist{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer", name="product_id") */ private $productId; /** * @ORM\ManyToOne(targetEntity="App\Entity\Product", inversedBy="productWishlist") * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\ManyToOne(targetEntity="App\Entity\Wishlist", inversedBy="productWishlist") * @ORM\JoinColumn(nullable=false) */ private $wishlist; /** * @ORM\Column(type="datetime") */ private $created_at; /** * @ORM\Column(type="datetime") */ private $updated_at; public function getId(): ?int { return $this->id; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getWishlist(): ?Wishlist { return $this->wishlist; } public function setWishlist(?Wishlist $wishlist): self { $this->wishlist = $wishlist; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updated_at; } public function setUpdatedAt(\DateTimeInterface $updated_at): self { $this->updated_at = $updated_at; return $this; }}