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

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