collection助手函数返回think\Collection对象

This commit is contained in:
thinkphp
2017-01-18 10:25:10 +08:00
parent a1cb6ea4ca
commit be6d528f68
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
//-------------------------
use think\Cache;
use think\Collection;
use think\Config;
use think\Cookie;
use think\Db;
@@ -23,7 +24,6 @@ use think\exception\HttpResponseException;
use think\Lang;
use think\Loader;
use think\Log;
use think\model\Collection;
use think\Request;
use think\Response;
use think\Session;

View File

@@ -160,6 +160,7 @@ class MorphMany extends Relation
* @param array $where 关联预查询条件
* @param string $relation 关联名
* @param string $subRelation 子关联
* @param \Closure $closure 闭包
* @return array
*/
protected function eagerlyMorphToMany($where, $relation, $subRelation = '', $closure = false)