[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

apache2, php 5.4, mysql


use Zend\Form\Annotation;



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


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


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

works not:

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

Error message:


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

The _ at the end is missing.

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 Sat Aug 01 13:51:07 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.