vendor/gedmo/doctrine-extensions/src/Translatable/Entity/Translation.php line 43

  1. <?php
  2. /*
  3.  * This file is part of the Doctrine Behavioral Extensions package.
  4.  * (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. namespace Gedmo\Translatable\Entity;
  9. use Doctrine\ORM\Mapping\Entity;
  10. use Doctrine\ORM\Mapping\Index;
  11. use Doctrine\ORM\Mapping\Table;
  12. use Doctrine\ORM\Mapping\UniqueConstraint;
  13. use Gedmo\Translatable\Entity\Repository\TranslationRepository;
  14. /**
  15.  * Gedmo\Translatable\Entity\Translation
  16.  *
  17.  * @Table(
  18.  *     name="ext_translations",
  19.  *     options={"row_format": "DYNAMIC"},
  20.  *     indexes={
  21.  *         @Index(name="translations_lookup_idx", columns={
  22.  *             "locale", "object_class", "foreign_key"
  23.  *         }),
  24.  *         @Index(name="general_translations_lookup_idx", columns={
  25.  *             "object_class", "foreign_key"
  26.  *         })
  27.  *     },
  28.  *     uniqueConstraints={@UniqueConstraint(name="lookup_unique_idx", columns={
  29.  *         "locale", "object_class", "field", "foreign_key"
  30.  *     })}
  31.  * )
  32.  * @Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
  33.  */
  34. #[Entity(repositoryClassTranslationRepository::class)]
  35. #[Table(name'ext_translations'options: ['row_format' => 'DYNAMIC'])]
  36. #[Index(name'translations_lookup_idx'columns: ['locale''object_class''foreign_key'])]
  37. #[Index(name'general_translations_lookup_idx'columns: ['object_class''foreign_key'])]
  38. #[UniqueConstraint(name'lookup_unique_idx'columns: ['locale''object_class''field''foreign_key'])]
  39. class Translation extends MappedSuperclass\AbstractTranslation
  40. {
  41.     /*
  42.      * All required columns are mapped through inherited superclass
  43.      */
  44. }