src/Entity/Chat/TemporaryCanal.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Chat;
  3. use App\Repository\Chat\TemporaryCanalRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTemporaryCanalRepository::class)]
  6. #[ORM\UniqueConstraint(name'single_temporary_canal'columns: ['event_id'])]
  7. #[ORM\Table(name'chat_temporary_canals')]
  8. class TemporaryCanal extends Canal
  9. {
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $eventId null;
  12.     public function getEventId(): ?int
  13.     {
  14.         return $this->eventId;
  15.     }
  16.     public function setEventId(int $eventId): self
  17.     {
  18.         $this->eventId $eventId;
  19.         return $this;
  20.     }
  21. }