TP5聚合模型报错

浏览:2257 发布日期:2016/11/09 分类:ThinkPHP5专区
Cannot redeclare non static think\model\Merge::$relationModel as static


PHP代码:
use think\model\Merge;

class Article extends Merge
{
// 定义关联模型列表
protected static $relationModel = ['User'];
// 定义关联外键
protected $fk = 'userId';
最佳答案
评论( 相关
后面还有条评论,点击查看>>