ekvedaras / laravel-query-intellij

💿 Laravel Query Builder integration for PhpStorm
MIT License
47 stars 3 forks source link

Unknown column inspection triggers for object string values #96

Closed ekvedaras closed 1 year ago

ekvedaras commented 2 years ago
SomeModel::create([
    'prop_1' => $val1,
    'prop_2' => $var = new SomeObject(
        prop1: 'Val1', // <--
    ),
]);
Allgoodnamesargone commented 1 year ago

The same inspection triggers when using relationship()->pluck('...') image

image

UPDATE: I did set Table prefix in PhpStorm > Settings > Languages & Frameworks > Laravel Query previously and removed it then. While it displaying Table prefix empty after that, the setting was still present in .idea/laravel-query-settings.xml ! so i did removed the line and it's fixed now. @ekvedaras You may want to check it up.

ekvedaras commented 1 year ago

Thanks for reporting 👍 Will look into

ekvedaras commented 1 year ago

Can't reproduce the issue with settings not persisting 🤷 I've fixed the issue with column inspection in create method. Will be released soon