[0] InvalidArgumentException in Model.php line 559

类的属性不存在:app\common\model\Article->describe

  1. } elseif ($notFound) {
  2. $relation = Loader::parseName($name, 1, false);
  3. if (method_exists($this, $relation)) {
  4. $modelRelation = $this->$relation();
  5. // 不存在该字段 获取关联数据
  6. $value = $this->getRelationData($modelRelation);
  7. // 保存关联对象值
  8. $this->relation[$name] = $value;
  9. } else {
  10. throw new InvalidArgumentException('property not exists:' . $this->class . '->' . $name);
  11. }
  12. }
  13. return $value;
  14. }
  15. /**
  16. * 获取关联模型数据
  17. * @access public
  18. * @param Relation $modelRelation 模型关联对象

Call Stack

  1. in Model.php line 559
  2. at Model->getAttr('describe') in Model.php line 2148
  3. at Model->offsetGet('describe') in df1edee10e944d3a9638733843444cbe.php line 268
  4. at include('D:\phpStudy\WWW\huaj...') in File.php line 50
  5. at File->read('D:\phpStudy\WWW\huaj...', ['loading_icon' => '7', 'pjax_mode' => '1', 'static_root' => 'http://www.bjhj.org....', ...]) in Template.php line 196
  6. at Template->fetch('D:\phpStudy\WWW\huaj...', ['loading_icon' => '7', 'pjax_mode' => '1', 'static_root' => 'http://www.bjhj.org....', ...], []) in Think.php line 84
  7. at Think->fetch('school', ['loading_icon' => '7', 'pjax_mode' => '1', 'static_root' => 'http://www.bjhj.org....', ...], []) in View.php line 159
  8. at View->fetch('school', [], [], []) in Controller.php line 111
  9. at Controller->fetch('school') in Index.php line 164
  10. at Index->school('389')
  11. at ReflectionMethod->invokeArgs(object(Index), ['389']) in App.php line 196
  12. at App::invokeMethod([object(Index), 'school'], []) in App.php line 415
  13. at App::module(['index', 'index', 'school'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  14. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'school']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  15. at App::run() in start.php line 18
  16. at require('D:\phpStudy\WWW\huaj...') in public.php line 29
  17. at require('D:\phpStudy\WWW\huaj...') in index.php line 16