38 lines
756 B
PHP
38 lines
756 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Entity\Document;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use App\Repository\AnnounceRepository;
|
|
use Gedmo\Mapping\Annotation as Gedmo;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
/**
|
|
* @ORM\Entity(repositoryClass=AnnounceRepository::class)
|
|
*/
|
|
class Announce extends Document
|
|
{
|
|
/**
|
|
* @ORM\Column(type="text", length=65535)
|
|
* @Gedmo\Versioned
|
|
* @Assert\Length(
|
|
* max=65535,
|
|
* maxMessage="Content too long : {{ limit }} max"
|
|
* )
|
|
*/
|
|
private $content;
|
|
|
|
public function getContent(): ?string
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
public function setContent(string $content): self
|
|
{
|
|
$this->content = $content;
|
|
|
|
return $this;
|
|
}
|
|
}
|