改进自关联查询多级调用问题

This commit is contained in:
thinkphp
2018-01-05 17:28:21 +08:00
parent 1f06d05cbe
commit ea2ce8f8de
4 changed files with 34 additions and 23 deletions

View File

@@ -49,11 +49,11 @@ abstract class Relation
/**
* 获取当前的关联模型类
* @access public
* @return string
* @return Model
*/
public function getModel()
{
return $this->model;
return $this->query->getModel();
}
/**