mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-78: Add Context Name to AnnotationsParser which is printed on Syntax Errors #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 30, 2009).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
Currently its pretty hard to find out where exactly an error occured when an AnnotationsParser Syntax Error occurs.
My Proposal would be to extend \Doctrine\Common\Annotations\Parser:
This way in the AnnotationsDriver you could add the contexts:
"Class Foo"
"Property Foo::$bar"
This would be an enourmuous help with finding syntax errors when you have lots of different annotated docblocks that are parsed.
@doctrinebot commented on GitHub (Oct 30, 2009):
Comment created by romanb:
Sounds very useful to me. If you want you can implement that. Just make sure the context name is cleaned up properly so that no unwanted side-effects occur which could probably result in syntax errors with a wrong context name which would be extremely confusing.
@doctrinebot commented on GitHub (Oct 30, 2009):
Comment created by romanb:
(Btw. you are in the JIRA developers group now. Welcome! :)
@doctrinebot commented on GitHub (Oct 30, 2009):
Comment created by @beberlei:
Fixed
@doctrinebot commented on GitHub (Oct 30, 2009):
Issue was closed with resolution "Fixed"