<?php
namespace App\Entity;
use App\Repository\InfluencerFollowerRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=InfluencerFollowerRepository::class)
*/
class InfluencerFollower
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="influencerFollowers")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=Influencer::class, inversedBy="influencerFollowers")
* @ORM\JoinColumn(nullable=false)
*/
private $influencer;
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 getInfluencer(): ?Influencer
{
return $this->influencer;
}
public function getInfluencerPhotos(): ?Photo
{
return $this->getInfluencer->getPhotos();
}
public function setInfluencer(?Influencer $influencer): self
{
$this->influencer = $influencer;
return $this;
}
}