mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
命名规范调整loadRelation => load_relation
This commit is contained in:
@@ -549,14 +549,14 @@ if (!function_exists('token')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('loadRelation')) {
|
if (!function_exists('load_relation')) {
|
||||||
/**
|
/**
|
||||||
* 延迟预载入关联查询
|
* 延迟预载入关联查询
|
||||||
* @param mixed $resultSet 数据集
|
* @param mixed $resultSet 数据集
|
||||||
* @param mixed $relation 关联
|
* @param mixed $relation 关联
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function loadRelation($resultSet, $relation)
|
function load_relation($resultSet, $relation)
|
||||||
{
|
{
|
||||||
$item = current($resultSet);
|
$item = current($resultSet);
|
||||||
if ($item instanceof Model) {
|
if ($item instanceof Model) {
|
||||||
|
|||||||
Reference in New Issue
Block a user