<?php
namespace App\Entity\Chat;
use App\Repository\Chat\TemporaryCanalRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TemporaryCanalRepository::class)]
#[ORM\UniqueConstraint(name: 'single_temporary_canal', columns: ['event_id'])]
#[ORM\Table(name: 'chat_temporary_canals')]
class TemporaryCanal extends Canal
{
#[ORM\Column(type: 'integer')]
private ?int $eventId = null;
public function getEventId(): ?int
{
return $this->eventId;
}
public function setEventId(int $eventId): self
{
$this->eventId = $eventId;
return $this;
}
}