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

Open in your IDE?
  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\MappedSuperclass\AbstractTranslation;
  14. use Gedmo\Translatable\Entity\Repository\TranslationRepository;
  15. /**
  16.  * Gedmo\Translatable\Entity\Translation
  17.  *
  18.  * @Table(
  19.  *     name="ext_translations",
  20.  *     options={"row_format": "DYNAMIC"},
  21.  *     indexes={
  22.  *         @Index(name="translations_lookup_idx", columns={
  23.  *             "locale", "object_class", "foreign_key"
  24.  *         }),
  25.  *         @Index(name="general_translations_lookup_idx", columns={
  26.  *             "object_class", "foreign_key"
  27.  *         })
  28.  *     },
  29.  *     uniqueConstraints={@UniqueConstraint(name="lookup_unique_idx", columns={
  30.  *         "locale", "object_class", "field", "foreign_key"
  31.  *     })}
  32.  * )
  33.  * @Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
  34.  */
  35. #[Entity(repositoryClassTranslationRepository::class)]
  36. #[Table(name'ext_translations'options: ['row_format' => 'DYNAMIC'])]
  37. #[Index(name'translations_lookup_idx'columns: ['locale''object_class''foreign_key'])]
  38. #[Index(name'general_translations_lookup_idx'columns: ['object_class''foreign_key'])]
  39. #[UniqueConstraint(name'lookup_unique_idx'columns: ['locale''object_class''field''foreign_key'])]
  40. class Translation extends AbstractTranslation
  41. {
  42.     /*
  43.      * All required columns are mapped through inherited superclass
  44.      */
  45. }