<?php
namespace App\Entity;
use App\Repository\MeetParticipantRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: MeetParticipantRepository::class)]
class MeetParticipant
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'meetParticipants')]
#[ORM\JoinColumn(onDelete: 'CASCADE')]
private ?Meeting $meet = null;
#[ORM\ManyToOne(inversedBy: 'meetParticipants')]
private ?User $participants = null;
public function getId(): ?int {
return $this->id;
}
public function getMeet(): ?Meeting
{
return $this->meet;
}
public function setMeet(?Meeting $meet): self
{
$this->meet = $meet;
return $this;
}
public function getParticipants(): ?User
{
return $this->participants;
}
public function setParticipants(?User $participants): self
{
$this->participants = $participants;
return $this;
}
#[Groups(['meetParticipant:read'])]
public function getParticipant() {
return $this->participants;
}
}