yii - Updating the existing model with Model Generator -
i generate model model generator , (afterward) add new table , new foreign keys relations.
is possible update existing model model generator?
or need edit code manually when add new table?
have @ gii-template-collection , it's fullmodel template.
it generates default 2 classes models, basemodel
, model
. best-practice me add custom functions, behaviors, scopes, etc... model
, leave basemodel
untouched.
if have changes in database schema, re-generate basemodel
class.