I love the code generation that Gii offers, but have a couple questions.
- In an agile workflow I might change my data schema several times on the same table. Would it be good policy to have Gii generate a base class [UserBase] and then inherit from that class [User] so that I can have Gii pave and recreate the base class without losing any of my domain logic? Are there any major drawbacks with this approach?
class User extends UserBase
{
public static function model($className=__CLASS__)
{
return parent::model($className);
}
public function OtherFunctionality()
{
}
}
- Is there a way to run Gii against all tables or a list of tables in the database instead of one at a time?
Just started with Yii and really like what it has to offer. My apologies if these questions are covered somewhere, but I wasn’t able to find it.