gedi 12 years ago
parent
commit
d5be578481
2 changed files with 9 additions and 8 deletions
  1. 1 0
      .gitignore
  2. 8 8
      lib/Gedmo/Translatable/Document/Translation.php

+ 1 - 0
.gitignore

@@ -3,3 +3,4 @@ tests/temp/*.php
 scripts/
 vendor/
 tags
+.vimrc.local

+ 8 - 8
lib/Gedmo/Translatable/Document/Translation.php

@@ -11,15 +11,15 @@ use Doctrine\ODM\MongoDB\Mapping\Annotations\Index;
  *
  * @Document(repositoryClass="Gedmo\Translatable\Document\Repository\TranslationRepository")
  * @UniqueIndex(name="lookup_unique_idx", keys={
- *         "locale",
- *         "object_class",
- *         "foreign_key",
- *         "field"
+ *         "locale" = "asc",
+ *         "object_class" = "asc",
+ *         "foreign_key" = "asc",
+ *         "field" = "asc"
  * })
  * @Index(name="translations_lookup_idx", keys={
- *      "locale",
- *      "object_class",
- *      "foreign_key"
+ *      "locale" = "asc",
+ *      "object_class" = "asc",
+ *      "foreign_key" = "asc"
  * })
  */
 class Translation extends MappedSuperclass\AbstractTranslation
@@ -27,4 +27,4 @@ class Translation extends MappedSuperclass\AbstractTranslation
     /**
      * All required columns are mapped through inherited superclass
      */
-}
+}