DDC-1965: Multiple Index fails if index name not specified #2481

Open
opened 2026-01-22 13:54:53 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 2, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user pont:

@ORM\Table(name="applications", indexes={@ORM\Index(name="csl_idx", columns={"createdAt", "status", "loanType"}), @ORM\Index(name="s_idx", columns={"status"}), @ORM\Index(name="l_idx", columns={"loanType"})})

the above Annotation creates 3 different indexes BUT when:

  • @ORM\Table(name="applications", indexes={@ORM\Index(columns={"createdAt", "status", "loanType"}), @ORM\Index(columns={"status"}), @ORM\Index(columns={"loanType"})})

index-names not specified Symfony2 schemaUpdate tools shows only the last Index

Originally created by @doctrinebot on GitHub (Aug 2, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user pont: @ORM\Table(name="applications", indexes={@ORM\Index(name="csl_idx", columns={"createdAt", "status", "loanType"}), @ORM\Index(name="s_idx", columns={"status"}), @ORM\Index(name="l_idx", columns={"loanType"})}) the above Annotation creates 3 different indexes BUT when: - @ORM\Table(name="applications", indexes={@ORM\Index(columns={"createdAt", "status", "loanType"}), @ORM\Index(columns={"status"}), @ORM\Index(columns={"loanType"})}) index-names not specified Symfony2 schemaUpdate tools shows only the last Index
admin added the Bug label 2026-01-22 13:54:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2481