DDC-2308: Naming Strategy for Reverse Engeneering #2900

Open
opened 2026-01-22 14:06:57 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 21, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user ancpru:

Unfortunately DatabaseDriver::getClassNameForTable() is declared as private method, which makes it quite difficult to change the naming strategy for reverse engeneering.

IMO this sould be declared protected. An even better way would be to extend the interface of the Naming Strategy objects to support the reverse direction:

classToTableName -> tableToClassName
propertyToColumnName -> columnToPropertyName.

This way we would have a consistent name-mapping

Originally created by @doctrinebot on GitHub (Feb 21, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user ancpru: Unfortunately DatabaseDriver::getClassNameForTable() is declared as private method, which makes it quite difficult to change the naming strategy for reverse engeneering. IMO this sould be declared protected. An even better way would be to extend the interface of the Naming Strategy objects to support the reverse direction: classToTableName -> tableToClassName propertyToColumnName -> columnToPropertyName. This way we would have a consistent name-mapping
admin added the Improvement label 2026-01-22 14:06:57 +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#2900