V-Beta-1.0.0
Vision is out of alpha !
This commit is contained in:
32
src/Entity/Announce.php
Normal file
32
src/Entity/Announce.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\Document;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use App\Repository\AnnounceRepository;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass=AnnounceRepository::class)
|
||||
*/
|
||||
class Announce extends Document
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="text")
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $content;
|
||||
|
||||
public function getContent(): ?string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function setContent(string $content): self
|
||||
{
|
||||
$this->content = $content;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user