src/Entity/ParagraphTranslation.php line 10
<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'paragraph_translation')]
class ParagraphTranslation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'translations')]
private ?Paragraph $paragraph = null;
#[ORM\Column(length: 2, nullable: true)]
private ?string $locale = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $title = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $text = null;
public function getId(): ?int
{
return $this->id;
}
public function getParagraph(): ?Paragraph
{
return $this->paragraph;
}
public function setParagraph(?Paragraph $paragraph): self
{
$this->paragraph = $paragraph;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(?string $locale): self
{
$this->locale = $locale;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(?string $text): self
{
$this->text = $text;
return $this;
}
}