<?php
namespace App\Entity;
use App\Translation\AutoTranslationTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
#[ORM\Entity]
class CropcategoryTranslation implements TranslationInterface
{
use AutoTranslationTrait;
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $name = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): CropcategoryTranslation
{
$this->name = $name;
return $this;
}
}