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

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