Permalink
Browse files

Updated indexes to match the latest update of the vendor

  • Loading branch information...
1 parent f7a9948 commit e4cd9c721a9181e51e2ed9037d5c8bb5ee3c6e38 @stof stof committed Nov 27, 2010
Showing with 9 additions and 3 deletions.
  1. +9 −3 Entity/Translation.php
View
@@ -6,9 +6,15 @@
* Bundle\DoctrineExtensionsBundle\Entity\Translation
*
* @orm:Entity(repositoryClass="Gedmo\Translatable\Repository\TranslationRepository")
- * @orm:Table(name="ext_translation", indexes={
- * @orm:index(name="lookup_idx", columns={"locale", "entity", "foreign_key", "field"})
- * })
+ * @orm:Table(
+ * name="ext_translations",
+ * indexes={@orm:index(name="translations_lookup_idx", columns={
+ * "locale", "entity", "foreign_key"
+ * })},
+ * uniqueConstraints={@orm:UniqueConstraint(name="lookup_unique_idx", columns={
+ * "locale", "entity", "foreign_key", "field"
+ * })}
+ * )
*/
class Translation extends AbstractTranslation
{

0 comments on commit e4cd9c7

Please sign in to comment.