We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76281c1 commit b6af2beCopy full SHA for b6af2be
src/Jenssegers/Mongodb/Relations/BelongsToMany.php
@@ -286,4 +286,24 @@ public function getForeignKey()
286
{
287
return $this->foreignKey;
288
}
289
+
290
+ /**
291
+ * Format the sync list so that it is keyed by ID. (Legacy Support)
292
+ * The original function has been renamed to formatRecordsList since Laravel 5.3
293
+ *
294
+ * @deprecated
295
+ * @param array $records
296
+ * @return array
297
+ */
298
+ protected function formatSyncList(array $records)
299
+ {
300
+ $results = [];
301
+ foreach ($records as $id => $attributes) {
302
+ if (! is_array($attributes)) {
303
+ list($id, $attributes) = [$attributes, []];
304
+ }
305
+ $results[$id] = $attributes;
306
307
+ return $results;
308
309
0 commit comments