Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-micro
Commits
62b50b0f
Commit
62b50b0f
authored
Jun 09, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复方法名typo
parent
a1db6513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
functions.php
src/functions.php
+1
-1
No files found.
src/functions.php
View file @
62b50b0f
...
...
@@ -616,7 +616,7 @@ if (!function_exists('make_belong_relation_function')) {
* @param callable|null $callback 内嵌级联调用
* @return Closure 返回关联关系的匿名函数
*/
function
make_belong_lation_function
(
$relationName
,
array
&
$mainModelColumns
,
$relationColumns
=
[
'id'
,
'name'
],
$mainModelRelationKey
=
""
,
callable
$callback
=
null
)
function
make_belong_
re
lation_function
(
$relationName
,
array
&
$mainModelColumns
,
$relationColumns
=
[
'id'
,
'name'
],
$mainModelRelationKey
=
""
,
callable
$callback
=
null
)
{
$key
=
$mainModelRelationKey
?
$mainModelRelationKey
:
$relationName
.
"_id"
;
if
(
!
in_array
(
$key
,
$mainModelColumns
))
array_push
(
$mainModelColumns
,
$key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment