src/Entity/Olympiad/Online/Attendant/AttendantParticipant.php line 14
<?php
namespace App\Entity\Olympiad\Online\Attendant;
use App\Entity\Common\File;
use App\Entity\Olympiad\Online\Participant;
use App\Entity\Traits\CreatedTrait;
use App\Entity\Traits\UpdatedTrait;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'olymp_online_attendant_participants')]
#[ORM\Entity(repositoryClass: 'App\Repository\Olympiad\Online\AttendantParticipantRepository')]
#[ORM\HasLifecycleCallbacks]
class AttendantParticipant
{
use CreatedTrait;
use UpdatedTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
/**
* @var Participant
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Online\Participant')]
#[ORM\JoinColumn(nullable: false)]
private Participant $participant;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Online\Attendant\Attendant', inversedBy: 'participants')]
#[ORM\JoinColumn(nullable: false)]
private Attendant $attendant;
/**
* @var File|null
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Common\File', cascade: ['persist', 'remove'])]
private ?File $attorney;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return Participant
*/
public function getParticipant(): Participant
{
return $this->participant;
}
/**
* @param Participant $participant
*/
public function setParticipant(Participant $participant): void
{
$this->participant = $participant;
}
/**
* @return Attendant
*/
public function getAttendant(): Attendant
{
return $this->attendant;
}
/**
* @param Attendant $attendant
*/
public function setAttendant(Attendant $attendant): void
{
$this->attendant = $attendant;
}
/**
* @return File|null
*/
public function getAttorney(): ?File
{
return $this->attorney;
}
/**
* @param File|null $attorney
*/
public function setAttorney(?File $attorney): void
{
$this->attorney = $attorney;
}
}