DDC-3649: [GH-1356] Introduced skipNamespaceInPath and skipNamespacePartInPath properties #4483

Closed
opened 2026-01-22 14:42:40 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 1, 2015).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of ancpru:

Url: https://github.com/doctrine/doctrine2/pull/1356

Message:

Hi All,

I've extended the EntityGenerator in order to make handling of namespaces more flexible. Currently the EntityGenerator class creates a full tree based on the namespace under the output-directory. This causes problems in a PSR-4-like environment. Thus, i've introduced two properties in order to manipulate the target path:

skipNamespaceInPath: if true, every class file is put directly into the output-directory. if false (which is the default and equal to the current behaviour), subdirectories based on the namespace are generated.

skipNamespacePartInPath: the part of the namespace to skip, for example if the namespace is 'Foo\Bar\Entities\MyEntity', and skipNamespacePartInPath is set to 'Foo\Bar', the entity MyEntity is generated in the directory 'Entities' under the output-directory.

Andreas

Originally created by @doctrinebot on GitHub (Apr 1, 2015). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of ancpru: Url: https://github.com/doctrine/doctrine2/pull/1356 Message: Hi All, I've extended the EntityGenerator in order to make handling of namespaces more flexible. Currently the EntityGenerator class creates a full tree based on the namespace under the output-directory. This causes problems in a PSR-4-like environment. Thus, i've introduced two properties in order to manipulate the target path: skipNamespaceInPath: if true, every class file is put directly into the output-directory. if false (which is the default and equal to the current behaviour), subdirectories based on the namespace are generated. skipNamespacePartInPath: the part of the namespace to skip, for example if the namespace is 'Foo\Bar\Entities\MyEntity', and skipNamespacePartInPath is set to 'Foo\Bar', the entity MyEntity is generated in the directory 'Entities' under the output-directory. Andreas
admin added the BugWon't Fix labels 2026-01-22 14:42:40 +01:00
admin closed this issue 2026-01-22 14:42:40 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1356] was labeled:
https://github.com/doctrine/doctrine2/pull/1356

@doctrinebot commented on GitHub (Apr 1, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1356] was labeled: https://github.com/doctrine/doctrine2/pull/1356
Author
Owner

@doctrinebot commented on GitHub (Apr 2, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1356] was assigned:
https://github.com/doctrine/doctrine2/pull/1356

@doctrinebot commented on GitHub (Apr 2, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1356] was assigned: https://github.com/doctrine/doctrine2/pull/1356
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4483