DDC-81: Wrong class names when using sub-namespaces #99

Open
opened 2026-01-22 12:27:03 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 30, 2009).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user nicokaiser:

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

Originally created by @doctrinebot on GitHub (Oct 30, 2009). Originally assigned to: @jwage on GitHub. Jira issue originally created by user nicokaiser: 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
admin added the Bug label 2026-01-22 12:27:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#99