Prefered Way To Update Models With Db Changes
Posted 24 November 2013 - 12:20 PM
In Yii 1 I used the Giix extension and found it really helpful because it created a base model folder that all models were derived from. So UserModel.php was derived from baseUserModel.php. This meant that if there were any changes in the User table's structure or relations with other models you could just run Giix and update the base models, meaning you never lost or overwrote code in your models.
What is the preferred way to do deal with updating models on DB changes in Yii2? I saw a discussion on Git sometime about the inclusion of a giix built into Yii2. But it doesn't appear to be.
New Yii loves great though
Posted 24 November 2013 - 05:02 PM
Posted 24 November 2013 - 06:49 PM
DB Tables *will* change during the lifecycle of the app and
that's great to know your productive Gii tool can cope with the changes
Thanks 4 Yii !
Posted 25 November 2013 - 04:55 AM
Hi nineinchnick, you're right. Since Qiang posted that Yii 2 will be launched with a somewhat stable codebase, I started studying it.
I'll release an initial version of giix 2 soon.