Translation.php 834 B

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