Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-81

Wrong class names when using sub-namespaces

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None

      Description

      When using sub-namespaces, e.g. an entity is named "Entity\User\Permission", the annontated PHP file has the wrong class:

      • - - - 8< - - - -
        namespace Entity\User;
        ...
        class User\Permission
        {
        ...
      • - - - 8< - - - -

      The namespace is correct, but the class should be "class Permission"...

      The attaches patch should fix this in AnnotationExporter

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Thanks for the ticket and patch.

        Show
        Jonathan H. Wage added a comment - Thanks for the ticket and patch.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Nico Kaiser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: