<?php
namespace App\Entity;
use App\Repository\FavoriteRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FavoriteRepository::class)
*/
class Favorite
{
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity=Customer::class, inversedBy="favorites")
* @ORM\JoinColumn(nullable=false)
*/
private $customer;
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
private $object_id;
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getObjectId(): ?int
{
return $this->object_id;
}
public function setObjectId(int $object_id): self
{
$this->object_id = $object_id;
return $this;
}
}