<?php
namespace App\Entity;
use App\Repository\ProducerTranslationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: ProducerTranslationRepository::class)]
class ProducerTranslation implements TranslationInterface
{
use TranslationTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "IDENTITY")]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Assert\NotBlank]
private ?string $features = null;
public function getFeatures(): ?string
{
return $this->features;
}
public function setFeatures(?string $features): self
{
$this->features = $features;
return $this;
}
}