File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
src/Illuminate/Database/Eloquent Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -2190,20 +2190,6 @@ public function onClone(Closure $callback)
2190
2190
return $ this ;
2191
2191
}
2192
2192
2193
- /**
2194
- * Invoke the "on clone" modification callbacks.
2195
- *
2196
- * @return static
2197
- */
2198
- public function applyOnCloneCallbacks ()
2199
- {
2200
- foreach ($ this ->onCloneCallbacks as $ onCloneCallback ) {
2201
- $ onCloneCallback ($ this );
2202
- }
2203
-
2204
- return $ this ;
2205
- }
2206
-
2207
2193
/**
2208
2194
* Force a clone of the underlying query builder when cloning.
2209
2195
*
@@ -2212,7 +2198,9 @@ public function applyOnCloneCallbacks()
2212
2198
public function __clone ()
2213
2199
{
2214
2200
$ this ->query = clone $ this ->query ;
2215
-
2216
- $ this ->applyOnCloneCallbacks ();
2201
+
2202
+ foreach ($ this ->onCloneCallbacks as $ onCloneCallback ) {
2203
+ $ onCloneCallback ($ this );
2204
+ }
2217
2205
}
2218
2206
}
You can’t perform that action at this time.
0 commit comments