Translation.php 832 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Gedmo\Translatable\Entity;
  3. use Doctrine\ORM\Mapping\Table;
  4. use Doctrine\ORM\Mapping\Index;
  5. use Doctrine\ORM\Mapping\UniqueConstraint;
  6. use Doctrine\ORM\Mapping\Entity;
  7. /**
  8. * Gedmo\Translatable\Entity\Translation
  9. *
  10. * @Table(
  11. * name="ext_translations",
  12. * indexes={@index(name="translations_lookup_idx", columns={
  13. * "locale", "object_class", "foreign_key"
  14. * })},
  15. * uniqueConstraints={@UniqueConstraint(name="lookup_unique_idx", columns={
  16. * "locale", "object_class", "field", "foreign_key"
  17. * })}
  18. * )
  19. * @Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
  20. */
  21. class Translation extends MappedSuperclass\AbstractTranslation
  22. {
  23. /**
  24. * All required columns are mapped through inherited superclass
  25. */
  26. }