mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
collection助手函数返回think\Collection对象
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
//-------------------------
|
//-------------------------
|
||||||
|
|
||||||
use think\Cache;
|
use think\Cache;
|
||||||
|
use think\Collection;
|
||||||
use think\Config;
|
use think\Config;
|
||||||
use think\Cookie;
|
use think\Cookie;
|
||||||
use think\Db;
|
use think\Db;
|
||||||
@@ -23,7 +24,6 @@ use think\exception\HttpResponseException;
|
|||||||
use think\Lang;
|
use think\Lang;
|
||||||
use think\Loader;
|
use think\Loader;
|
||||||
use think\Log;
|
use think\Log;
|
||||||
use think\model\Collection;
|
|
||||||
use think\Request;
|
use think\Request;
|
||||||
use think\Response;
|
use think\Response;
|
||||||
use think\Session;
|
use think\Session;
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ class MorphMany extends Relation
|
|||||||
* @param array $where 关联预查询条件
|
* @param array $where 关联预查询条件
|
||||||
* @param string $relation 关联名
|
* @param string $relation 关联名
|
||||||
* @param string $subRelation 子关联
|
* @param string $subRelation 子关联
|
||||||
|
* @param \Closure $closure 闭包
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function eagerlyMorphToMany($where, $relation, $subRelation = '', $closure = false)
|
protected function eagerlyMorphToMany($where, $relation, $subRelation = '', $closure = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user