diff --git a/src/Entity/Project/Project.php b/src/Entity/Project/Project.php index 2487053..246e919 100644 --- a/src/Entity/Project/Project.php +++ b/src/Entity/Project/Project.php @@ -4,7 +4,9 @@ namespace App\Entity\Project; use App\Entity\Accounting\Accounting; use App\Entity\Interface\AccountingOwnerInterface; +use App\Entity\Interface\LocalizedContentInterface; use App\Entity\Interface\UserOwnedInterface; +use App\Entity\Trait\LocalizedContent; use App\Entity\Trait\MigratedEntity; use App\Entity\Trait\TimestampedCreationEntity; use App\Entity\Trait\TimestampedUpdationEntity; @@ -15,11 +17,13 @@ use AutoMapper\Attribute\MapProvider; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; +use Gedmo\Mapping\Annotation as Gedmo; #[MapProvider(EntityMapProvider::class)] #[ORM\Entity(repositoryClass: ProjectRepository::class)] -class Project implements UserOwnedInterface, AccountingOwnerInterface +class Project implements UserOwnedInterface, AccountingOwnerInterface, LocalizedContentInterface { + use LocalizedContent; use MigratedEntity; use TimestampedCreationEntity; use TimestampedUpdationEntity; @@ -33,6 +37,7 @@ class Project implements UserOwnedInterface, AccountingOwnerInterface * The main title for the project. */ #[ORM\Column(length: 255)] + #[Gedmo\Translatable()] private ?string $title = null; /**