|
19 | 19 | * @ORM\Table(
|
20 | 20 | * name="ext_translations",
|
21 | 21 | * options={"row_format": "DYNAMIC"},
|
22 |
| - * indexes={ |
23 |
| - * @ORM\Index(name="translations_lookup_idx", columns={ |
24 |
| - * "locale", "object_class", "foreign_key" |
25 |
| - * }), |
26 |
| - * @ORM\Index(name="general_translations_lookup_idx", columns={ |
27 |
| - * "object_class", "foreign_key" |
28 |
| - * }) |
29 |
| - * }, |
30 | 22 | * uniqueConstraints={@ORM\UniqueConstraint(name="lookup_unique_idx", columns={
|
31 |
| - * "locale", "object_class", "field", "foreign_key" |
| 23 | + * "foreign_key", "locale", "object_class", "field" |
32 | 24 | * })}
|
33 | 25 | * )
|
34 | 26 | * @ORM\Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
|
35 | 27 | */
|
36 | 28 | #[ORM\Entity(repositoryClass: TranslationRepository::class)]
|
37 | 29 | #[ORM\Table(name: 'ext_translations', options: ['row_format' => 'DYNAMIC'])]
|
38 |
| -#[ORM\Index(name: 'translations_lookup_idx', columns: ['locale', 'object_class', 'foreign_key'])] |
39 |
| -#[ORM\Index(name: 'general_translations_lookup_idx', columns: ['object_class', 'foreign_key'])] |
40 |
| -#[ORM\UniqueConstraint(name: 'lookup_unique_idx', columns: ['locale', 'object_class', 'field', 'foreign_key'])] |
| 30 | +#[ORM\UniqueConstraint(name: 'lookup_unique_idx', columns: ['foreign_key', 'locale', 'object_class', 'field'])] |
41 | 31 | class Translation extends AbstractTranslation
|
42 | 32 | {
|
43 | 33 | /*
|
|
0 commit comments