src/Entity/Gallery/AlbumTranslation.php line 10
<?php
namespace App\Entity\Gallery;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
#[ORM\Table(name: 'gallery_album_translation')]
#[ORM\Entity]
class AlbumTranslation implements TranslationInterface
{
use \Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait {
isEmpty as ttEmpty;
}
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\Column(type: 'string')]
private ?string $caption = null;
public function isEmpty(): bool
{
$parentResult = $this->ttEmpty();
if ($parentResult) {
return true;
}
if (empty($this->caption)) {
return true;
}
return false;
}
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
}