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

Closed
doctrinebot opened this Issue Oct 11, 2013 · 9 comments

2 participants

@doctrinebot

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

Comment created by @ocramius:

Can you provide the entire generated file as an attachment?

@doctrinebot

Comment created by tineo:

Generated class.

@doctrinebot

Comment created by tineo:

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

@doctrinebot

Comment created by @ocramius:

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

@doctrinebot

Comment created by tineo:

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

@doctrinebot

Comment created by @ocramius:

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

@doctrinebot

Comment created by tineo:

Ok, I'll try. I use 2.2.1.

@doctrinebot

Comment created by @guilhermeblanco:

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

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.3.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment