How to regenerate a model file description correctly after some fields in database was changed.
I mean the model file already has pretty much code, so it’s kinda difficult to regenerate this file automatically, or maybe i just don’t know a trick haha
If you’ve customized it over time/during development, I’d rename it, then use gii to generate a new one which will have the proper fields… then you can copy any customizations for your original file over to the newly generated one.
Thats how i currently do this, just Wonder if theres a better way. I mean why does gii not find the rules and the atteibutesLabel methods and replace it automatically without modifying the rest of the model code?