求证3.2模型字段定义_autoinc是否继续存在?

浏览:1032 发布日期:2013/12/31 分类:求助交流
3.1.3
http://doc.thinkphp.cn/manual/field_define.htmlprotected $fields = array(
            'id', 'username', 'email', 'age', '_pk' => 'id', '_autoinc' => true
        );
3.2
http://document.thinkphp.cn/manual_3_2.html#define_fieldsnamespace Home\Model;
use Think\Model;
class UserModel extends Model {
    protected $fields = array('id', 'username', 'email', 'age','_pk'=>'id');
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>