File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public function sync($ids, $detaching = true)
150
150
$ current = $ this ->parseIds ($ current );
151
151
}
152
152
153
- $ records = $ this ->formatSyncList ($ ids );
153
+ $ records = $ this ->formatRecordsList ($ ids );
154
154
155
155
$ current = Arr::wrap ($ current );
156
156
@@ -375,28 +375,6 @@ public function getQualifiedRelatedPivotKeyName()
375
375
return $ this ->relatedPivotKey ;
376
376
}
377
377
378
- /**
379
- * Format the sync list so that it is keyed by ID. (Legacy Support)
380
- * The original function has been renamed to formatRecordsList since Laravel 5.3.
381
- *
382
- * @deprecated
383
- *
384
- * @return array
385
- */
386
- protected function formatSyncList (array $ records )
387
- {
388
- $ results = [];
389
- foreach ($ records as $ id => $ attributes ) {
390
- if (! is_array ($ attributes )) {
391
- [$ id , $ attributes ] = [$ attributes , []];
392
- }
393
-
394
- $ results [$ id ] = $ attributes ;
395
- }
396
-
397
- return $ results ;
398
- }
399
-
400
378
/**
401
379
* Get the name of the "where in" method for eager loading.
402
380
*
You can’t perform that action at this time.
0 commit comments