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 c013626 commit a73ca67Copy full SHA for a73ca67
src/app/Library/CrudPanel/Traits/Update.php
@@ -26,6 +26,8 @@ public function update($id, $data)
26
$data = $this->compactFakeFields($data);
27
$item = $this->model->findOrFail($id);
28
29
+ $data = $this->changeBelongsToNamesFromRelationshipToForeignKey($data, $this->getFields());
30
+
31
$this->createRelations($item, $data);
32
33
// omit the n-n relationships when updating the eloquent item
0 commit comments