mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2736: Error generating annotations of index in Entities #3427
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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 tineo:
Generated class.
@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 @ocramius:
[~tineo] looks like the annotations for
Indexare lowercase (index) - what command did you issue to generate them?@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 @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 tineo:
Ok, I'll try. I use 2.2.1.
@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):
Issue was closed with resolution "Fixed"