laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Problem with upper case DB Fields name on Oracle

Open mdemori opened this issue 2 years ago • 3 comments

Versions:

Versions: ide-helper Version: 2.12.3 Laravel Version: 8.83.25 PHP Version: 7.4.32

Question:

I had to use Oracle as my DB, and I discovered a problem when I request to create stub file for PHPStorm. All DB fields are UPPERCASE but on my project I use the field name as lowecase so the stub files are not reconized.

I found that a PR exist for fixing this problem, https://github.com/barryvdh/laravel-ide-helper/pull/1215 but seem that has never been merged, there is something that I miss to fix this problem or the only way is to wait for the PR will be merged?

thank you

mdemori avatar Oct 21 '22 15:10 mdemori

i have used this solution:

Open file in vendor\barryvdh\laravel-ide-helper\src\Console\ModelsCommand.php

Go to line 502 and add strtolower in column name

$name = strtolower($column->getName());

fabianogaldino avatar Oct 27 '22 01:10 fabianogaldino

@fabianogaldino, thank you for your suggestions I already patched it by myself integrating the original PR in my own fork, but obviously if will be a next version that don't include this change, I must did the change manually again.... I hope for a official solution to be honest.

Thank you

mdemori avatar Oct 30 '22 18:10 mdemori

Hi, sorry if I bump.. but i just saw that PR related to this issue has been closed without merging.. there is some kind of problem to merge the request? below the PR for reference.. https://github.com/barryvdh/laravel-ide-helper/pull/1215

mdemori avatar Apr 20 '23 12:04 mdemori