<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Address
*
* @ORM\Table(name="wishlists")
* @ORM\Entity(repositoryClass="App\Repository\WishlistProductRepository")
* @ORM\HasLifecycleCallbacks
*/
class WishlistProduct
{
/**
* @var int
*
* @ORM\Id
* @ORM\Column(name="ID", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="Customer")
* @ORM\JoinColumn(name="customers_id", referencedColumnName="customers_id")
*/
protected $customer;
/**
* @ORM\ManyToOne(targetEntity="Product")
* @ORM\JoinColumn(name="products_id", referencedColumnName="products_id", nullable=true, onDelete="CASCADE")
*/
protected $product;
/**
* @ORM\Column(name="CreatedAt", type="datetime")
*/
protected $createdAt;
public function getId() {
return $this->id;
}
public function getCustomer() {
return $this->customer;
}
public function getProduct() {
return $this->product;
}
public function getCreatedAt() {
return $this->createdAt;
}
public function setCustomer($customer) {
$this->customer = $customer;
}
public function setProduct($product) {
$this->product = $product;
}
public function setCreatedAt($createdAt) {
$this->createdAt = $createdAt;
}
}