Skip to content


DCOM-6: Non existant namespace alias throws a PHP Notice #660

doctrinebot opened this Issue · 6 comments

2 participants


Jira issue originally created by user merk:

@nonalias:Annot results in a php notice.


Comment created by @guilhermeblanco:

In commit:

I fixed this issue.
The validation on unexistent classes cannot be done correctly, otherwise it'd conflict with phpDoc tags.


Comment created by merk:

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)


Comment created by @guilhermeblanco:

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. =(

Reopening it


Comment created by @beberlei:

Fixed to skip the unknown alias annotation.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.0-RC1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.