ogcore/src/Entity/OgLive.php

31 lines
760 B
PHP

<?php
namespace App\Entity;
use App\Repository\OgLiveRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
#[ORM\Entity(repositoryClass: OgLiveRepository::class)]
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_NAME', fields: ['name'])]
#[UniqueEntity(fields: ['name'], message: 'validators.og_live.name.unique')]
class OgLive extends AbstractEntity
{
use NameableTrait;
#[ORM\Column(length: 255, nullable: true)]
private ?string $downloadUrl = null;
public function getDownloadUrl(): ?string
{
return $this->downloadUrl;
}
public function setDownloadUrl(?string $downloadUrl): static
{
$this->downloadUrl = $downloadUrl;
return $this;
}
}