plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Refresh database connection(s) when generating helper code

Open MichelJonkman opened this issue 2 years ago • 2 comments

Feature Description

I often forget to refresh my database connection after making changes before generating helper code and it's been causing some confusion...

A new option could be added in this dialog after selecting the option to fetch from Connection. image

The reason for having to use the connection in the first place is because I use my own migration system that obviously doesn't work with the plugin.

MichelJonkman avatar Dec 14 '23 13:12 MichelJonkman

We already tried to do that, but there were a lot of issues. PhpStorm crushes, etc. We will try to do it again soon.

adelf avatar Dec 21 '23 14:12 adelf

Interesting, if automatically won't work but adding a button that does the refresh does work, adding a pop up with a refresh button in it could be an alternative.

MichelJonkman avatar Dec 21 '23 15:12 MichelJonkman

I am fairly sure this was the cause of a bug for me where some fields just would never get seen by laravel idea.

Possibly a good temporary solution might be to warn users about stale connections? This has been a head scratcher for a long time for me as I think the last time I refreshed the connection was months ago.

ClaraLeigh avatar Mar 10 '25 02:03 ClaraLeigh

Jetbrains db introspection is getting reworked, we well investigate if this problem is closer to solution now. Close as duplicate for now, feel free to follow that other issue.

gorbunov avatar May 20 '25 17:05 gorbunov

Not sure what other issue you mean. Do you have a link @gorbunov ?

ClaraLeigh avatar May 21 '25 20:05 ClaraLeigh

You can track progress by following this github issue.

gorbunov avatar May 22 '25 03:05 gorbunov