Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
sinan
laravel-mongodb
Commits
9b125dc0
Commit
9b125dc0
authored
Feb 06, 2018
by
Remi Collin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new optionnal argument in HybridRelations::morphTo()
parent
9096abe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
HybridRelations.php
src/Jenssegers/Mongodb/Eloquent/HybridRelations.php
+2
-1
No files found.
src/Jenssegers/Mongodb/Eloquent/HybridRelations.php
View file @
9b125dc0
...
...
@@ -169,9 +169,10 @@ trait HybridRelations
* @param string $name
* @param string $type
* @param string $id
* @param string $ownerKey
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public
function
morphTo
(
$name
=
null
,
$type
=
null
,
$id
=
null
)
public
function
morphTo
(
$name
=
null
,
$type
=
null
,
$id
=
null
,
$ownerKey
=
null
)
{
// If no name is provided, we will use the backtrace to get the function name
// since that is most likely the name of the polymorphic interface. We can
...
...
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