Jira issue originally created by user merk:
@nonalias:Annot results in a php notice.
Comment created by merk:
Proposed tests and fix
Comment created by @guilhermeblanco:
In commit: http://github.com/doctrine/common/commit/ad49a676269af368563bd9a848c904b81a825622
I fixed this issue.
The validation on unexistent classes cannot be done correctly, otherwise it'd conflict with phpDoc tags.
What will your change do if there are multiple implementations of the Reader working on entities that dont have common namespaces, but still use namespaces?
Would it not make more sense to skip something that the Reader doesnt understand, rather than throwing an error?
(For example, Symfony2's validator system might have namespaced validators, which would then cause the 'Doctrine' reader to throw an exception)
Yes, you're right...
I think we'll have to silently bypass unknown aliases... this makes debug harder, but we don't have any other option. =(
Comment created by @beberlei:
Fixed to skip the unknown alias annotation.
Issue was closed with resolution "Fixed"