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

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

Type: Bug Priority: Minor
Reporter: exoon Assignee: Benjamin Eberlei
Resolution: Unresolved 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.


Generated at Wed Jun 19 17:12:23 UTC 2013 using JIRA 5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5.