From e3101211dddbc1d274fcfe811467ec2ac359c9e5 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Tue, 2 Apr 2024 13:29:03 +0200 Subject: [PATCH] Configure the `BaseEntity` class with attributes, additionally (#41) This should have been part of #40. --- src/Entity/BaseTranslation.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Entity/BaseTranslation.php b/src/Entity/BaseTranslation.php index d2cb1b7..021fbc1 100644 --- a/src/Entity/BaseTranslation.php +++ b/src/Entity/BaseTranslation.php @@ -10,7 +10,8 @@ namespace Webfactory\Bundle\PolyglotBundle\Entity; use Doctrine\ORM\Mapping as ORM; -use Webfactory\Bundle\PolyglotBundle\Annotation as Polyglot; +use Webfactory\Bundle\PolyglotBundle\Annotation as PolyglotAnnotation; +use Webfactory\Bundle\PolyglotBundle\Attribute as Polyglot; /** * @ORM\MappedSuperclass @@ -29,8 +30,9 @@ class BaseTranslation /** * @ORM\Column * - * @Polyglot\Locale + * @PolyglotAnnotation\Locale */ + #[Polyglot\Locale] protected $locale; /**