[DCOM-38] Annotation parser plain value types Created: 25/Feb/11 Updated: 07/Apr/11 Resolved: 07/Apr/11
|Reporter:||Martin Ivičič||Assignee:||Benjamin Eberlei|
I posted this question in doctrine user group(https://groups.google.com/forum/?fromgroups#!topic/doctrine-user/QhAz-Yr70T0), but with no response, so I'd like to open it up here as the solution is trivial and would save me either a lot of sub-classing or prevent me from changing the doctrine library files.
produces the following object:
You can see the value of the width property is string even I didn't use quotes in the annotation.
I found this happens because of the following fragment of code in \Doctrine\Common\Annotations\Parser and could be easily corrected by prefixing the value with the corresponding type cast (marked in red).
|Comment by Benjamin Eberlei [ 07/Apr/11 ]|