DDC-2736: Error generating annotations of index in Entities #3427

Closed
opened 2026-01-22 14:19:40 +01:00 by admin · 9 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 11, 2013).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user tineo:

<?php // /**** ``` @ORM\Entity @ORM\Table(name="opportunities",indexes={@ORM\index(name="idx*opp_name", columns={"name"}),@ORM\index(name="idx_opp_assigned", columns={"assigned_user*id"})}) ****/ // ``` @ORM\index instead of @ORM\Index // ?>

throw this error

[Doctrine\Common\Annotations\AnnotationException]

[Semantical Error] The annotation "@Doctrine\ORM\Mapping\index" in class CRM\Entity\Opportunities does not exist, or could not be auto-loaded.

Originally created by @doctrinebot on GitHub (Oct 11, 2013). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user tineo: <?php // /**** ``` @ORM\Entity @ORM\Table(name="opportunities",indexes={@ORM\index(name="idx*opp_name", columns={"name"}),@ORM\index(name="idx_opp_assigned", columns={"assigned_user*id"})}) ****/ // ``` @ORM\index instead of @ORM\Index // ?> throw this error [Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation "@Doctrine\ORM\Mapping\index" in class CRM\Entity\Opportunities does not exist, or could not be auto-loaded.
admin added the Bug label 2026-01-22 14:19:40 +01:00
admin closed this issue 2026-01-22 14:19:40 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by @ocramius:

Can you provide the entire generated file as an attachment?

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by @ocramius: Can you provide the entire generated file as an attachment?
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by tineo:

Generated class.

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by tineo: Generated class.
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by tineo:

Hi, Marco. Do I have to provide more files?

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by tineo: Hi, Marco. Do I have to provide more files?
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by @ocramius:

[~tineo] looks like the annotations for Index are lowercase (index) - what command did you issue to generate them?

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by @ocramius: [~tineo] looks like the annotations for `Index` are lowercase (`index`) - what command did you issue to generate them?
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by tineo:

i configured my bootstrap, and used " orm:generate-entities " in php bin/doctrine
:(

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by tineo: i configured my bootstrap, and used " orm:generate-entities " in php bin/doctrine :(
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by @ocramius:

Can you try using 2.4 for this? It looks OK in the EntityGenerator...

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by @ocramius: Can you try using 2.4 for this? It looks OK in the EntityGenerator...
Author
Owner

@doctrinebot commented on GitHub (Oct 17, 2013):

Comment created by tineo:

Ok, I'll try. I use 2.2.1.

@doctrinebot commented on GitHub (Oct 17, 2013): Comment created by tineo: Ok, I'll try. I use 2.2.1.
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2014):

Comment created by @guilhermeblanco:

Assuming issue got resolved by 2.4 upgrade.
Got no feedback from user.

@doctrinebot commented on GitHub (Apr 16, 2014): Comment created by @guilhermeblanco: Assuming issue got resolved by 2.4 upgrade. Got no feedback from user.
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 16, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3427