[DCOM-179] Underscore at the end of a label is not working with annotations Created: 03/Mar/13  Updated: 06/Dec/13  Resolved: 06/Dec/13

Status: Resolved
Project: Doctrine Common
Component/s: Annotations
Affects Version/s: 2.3
Fix Version/s: 2.3

Type: Bug Priority: Minor
Reporter: exoon Assignee: Guilherme Blanco
Resolution: Fixed Votes: 0
Labels: None
Environment:

apache2, php 5.4, mysql



 Description   

use Zend\Form\Annotation;

[...]

works:

* @Annotation\Options({"label":Namespace\Entity::LABEL})

or

* @Annotation\Options({"label":Namespace\Entity::_LABEL})

or

* @Annotation\Options({"label":Namespace\Entity::LA_BEL})

works not:

* @Annotation\Options({"label":Namespace\Entity::LABEL_})

Error message:

/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php:52

[Semantical Error] Couldn't find constant Namespace\Entity\::LABEL, property ...

The _ at the end is missing.



 Comments   
Comment by Marco Pivetta [ 03/Dec/13 ]

Provided a hotfix at https://github.com/doctrine/annotations/pull/19

Comment by Guilherme Blanco [ 06/Dec/13 ]

Implemented: https://github.com/doctrine/annotations/commit/0500074e2af1b3c9c6d6ea03d38fbd9f5ee7da71

Generated at Tue Jul 29 06:50:39 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.