Skip to content

Commit 9b125dc

Browse files
committed
Add new optionnal argument in HybridRelations::morphTo()
1 parent 9096abe commit 9b125dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Jenssegers/Mongodb/Eloquent/HybridRelations.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ public function belongsTo($related, $foreignKey = null, $otherKey = null, $relat
169169
* @param string $name
170170
* @param string $type
171171
* @param string $id
172+
* @param string $ownerKey
172173
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
173174
*/
174-
public function morphTo($name = null, $type = null, $id = null)
175+
public function morphTo($name = null, $type = null, $id = null, $ownerKey = null)
175176
{
176177
// If no name is provided, we will use the backtrace to get the function name
177178
// since that is most likely the name of the polymorphic interface. We can

0 commit comments

Comments
 (0)