Skip to content

Commit

Permalink
Configure the BaseEntity class with attributes, additionally (#41)
Browse files Browse the repository at this point in the history
This should have been part of #40.
  • Loading branch information
mpdude authored Apr 2, 2024
1 parent 212f4e5 commit e310121
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Entity/BaseTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,8 +30,9 @@ class BaseTranslation
/**
* @ORM\Column
*
* @Polyglot\Locale
* @PolyglotAnnotation\Locale
*/
#[Polyglot\Locale]
protected $locale;

/**
Expand Down

0 comments on commit e310121

Please sign in to comment.