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

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 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.  *     uniqueConstraints={@ORM\UniqueConstraint(name="lookup_unique_idx", columns={
  19.  *         "foreign_key", "locale", "object_class", "field"
  20.  *     })}
  21.  * )
  22.  * @ORM\Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
  23.  */
  24. #[ORM\Entity(repositoryClass: TranslationRepository::class)]
  25. #[ORM\Table(name: 'ext_translations', options: ['row_format' => 'DYNAMIC'])]
  26. #[ORM\UniqueConstraint(name: 'lookup_unique_idx', columns: ['foreign_key', 'locale', 'object_class', 'field'])]
  27. class Translation extends AbstractTranslation
  28. {
  29.     /*
  30.      * All required columns are mapped through inherited superclass
  31.      */
  32. }