Doctrine Common
  1. Doctrine Common
  2. DCOM-179

Underscore at the end of a label is not working with annotations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Annotations
    • 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.

        Activity

        Hide
        Marco Pivetta added a comment -
        Show
        Marco Pivetta added a comment - Provided a hotfix at https://github.com/doctrine/annotations/pull/19
        Show
        Guilherme Blanco added a comment - Implemented: https://github.com/doctrine/annotations/commit/0500074e2af1b3c9c6d6ea03d38fbd9f5ee7da71

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            exoon
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: