when i am using the symfony2 shell and trying to run
doctrine:generate:entities [MyBundle] --path='src'
or
doctrine:generate:entities [MyBundle]
i got this error
[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_CURLY_BRACES, got '@' at position 255 in property
so please any solutions ??
thanks in advance
I've encountered this error also. It's just a simple typo in one of your Entity annotations. A quick check of your entities will reveal something like this:
/**
* @ORM\Id
* @ORM\Column(type="integer" // note the missing close parentheses
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
Taking into account the line number, it's probably somewhere in one of your entity association mappings.
Just as cantera says, check the curly braces.
Here are some of symfony annotation errors:
The comma
Using the wrong type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With