mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Naming options for the orm:convert-mapping and orm:generate-entities commands #6164
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cooperll on GitHub (Jan 25, 2019).
Originally assigned to: @Ocramius on GitHub.
Feature Request
Summary
When reverse engineering a database for use with Doctrine, all of the xml and later the entities generated (by the orm:convert-mapping and orm:generate-entities commands respecitvely) do not respect camel case with regards to our table and column names.
An example column generated in one of the tables' XML files:
The "dateNum" column is clearly read just fine, but Doctrine doesn't appear to have any option in the documentation to let name="dateNum" instead of "datenum". The same applies to table names, and then later to .php models.
For our large database, the thought of writing a script to manually correct all of these issues in the XML so we can move to Doctrine is enough to turn people off of Doctrine, especially if we'd have to be running the convert-mapping command multiple times over a period while we move towards Doctrine entirely.
@Ocramius commented on GitHub (Jan 28, 2019):
Entity generation is deprecated is not going to be improved anymore, sorry.