Jira issue originally created by user obrys:
CLI doctrine tool fails when parsing entity sources (for example: doctrine orm:validate-schema) by following error:
Fatal error: Class 'throws\MemberAccessException' not found in /usr/share/php/Doctrine/Common/Annotations/Parser.php on line 272
exception 'FatalErrorException' with message 'Class 'throws\MemberAccessException' not found' in /usr/share/php/Doctrine/Common/Annotations/Parser.php:272
This error appears when @HasLifecycleCallbacks annotation is added into entity.
The solution is adding "@throws" annotation into strippedTags into Doctrine/Common/Annotations/Parser.php
Comment created by romanb:
Can you confirm that this is still a problem with the latest code?
Comment created by obrys:
I'm using the latest Doctrine2 available thru pear:
Package Version State
DoctrineCommon 2.0.0BETA4 beta
DoctrineDBAL 2.0.0BETA3 beta
DoctrineORM 2.0.0BETA3 beta
I still have to alter Parser.php
Comment created by @guilhermeblanco:
This ticket is invalid. I added coverage to it on commit:
Seems you have a @throws definition that is connected to the returned class, and this is then considered an annotation.
Issue was closed with resolution "Cannot Reproduce"