<?php
namespace App\Entity;
use App\Repository\ProfileFavoriteRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProfileFavoriteRepository::class)
*/
class ProfileFavorite
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="profileFavorites")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="profileFavorites")
*/
private $profile;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getProfile(): ?Profile
{
return $this->profile;
}
public function setProfile(?Profile $profile): self
{
$this->profile = $profile;
return $this;
}
}