mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
console orm:convert-mapping case sensitive fields #6138
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 @ghost on GitHub (Dec 16, 2018).
Originally assigned to: @Ocramius on GitHub.
Hi,
I'm trying to generate entities from my database with the console and orm:convert-mapping command.
Here is the command I'm using:
php vendor/doctrine/orm/bin/doctrine.php orm:convert-mapping --from-database annotation ./src/EntitiesThe problem is that the generated fields in my entities classes are not case sensitive.
For example, I have a validationCode field in a table in my database and the generated field in the corresponding entity is :
and I would like to have :
How can I do that using the command-line? thank you
@Ocramius commented on GitHub (Dec 16, 2018):
@yzobairi entity generators were deprecated and are no longer present in
master, nor will be improved further on. If you need this to import a legacy schema, I suggest debugging and hacking a fix into your own version until you need it, then forgetting about that CLI command entirely.Closing as
won't fixhere.See also https://github.com/doctrine/doctrine2/pull/6870