模型类
<?php
namespace app\models;
use yii\db\ActiveRecord;
class Country extends ActiveRecord
{
}
如果类名和数据表名不能直接对应, 可以覆写 tableName() 方法去显式指定相关表名。
<?php
namespace app\models;
use yii\db\ActiveRecord;
class Country extends ActiveRecord
{
}
如果类名和数据表名不能直接对应, 可以覆写 tableName() 方法去显式指定相关表名。