However, when I make changes to the structure or relationships of the table, I have to rely on GiiX to re-generate the model.
You really don't need it. The Yii construct makes all of your table fields available as attributes in your model. Thus, if you add a new field X to your TableA, you can imediatelly use $ modelA-> fieldX. You do not need to make updates in your model. Yii βknowsβ that you have changed the table.
Cm:
βAlthough we never explicitly declare the title property in the Post class, we can still access it in the code above. This is because the name is a column of the tbl_post table, and CActiveRecord makes this available as a property using PHP __get () magic Method : An exception will be thrown if we try to access a non-existent column in the same way. "
Source: http://www.yiiframework.com/doc/guide/1.1/en/database.ar
For Yii users specifically, once you've been doing Yii for a while do you even bother with Gii or GiiX? Did you quit using it because it was no longer useful, or because it was a crutch? Did you work on writing your own code generation and scaffolding tools?
I use Gii in all my projects for most models or the CRUD generation. It is very useful. I can customize the generated code the way I want. I even made some settings for the "skeleton" of the Gii generator, so the code was created in my language, not in English, and with some methods / attributes I need more.
For all coders, do you feel code generation tools should be avoided when learning a new language or framework?
No, IMO. Generated code is another way to find out.
source share