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 2085f71 commit 97fa391Copy full SHA for 97fa391
src/PHPFUI/ORM/Table.php
@@ -1010,6 +1010,7 @@ public function updateFromTable(array $request) : bool
1010
{
1011
$data = [];
1012
1013
+ $record = new static::$className($existingKey);
1014
foreach ($fields as $field => $typeInfo)
1015
1016
if (isset($request[$field]))
@@ -1024,7 +1025,7 @@ public function updateFromTable(array $request) : bool
1024
1025
}
1026
1027
- $this->instance->setEmpty()->setFrom($data)->insertOrUpdate();
1028
+ $record->setFrom($data)->insertOrUpdate();
1029
1030
1031
0 commit comments