9trait UpdateByFilterTrait
16 $sqlTableName = static::getTableName();
17 $sqlHelper =
$entity->getConnection()->getSqlHelper();
19 $update = $sqlHelper->prepareUpdate($sqlTableName,
$fields);
23 }
catch (\Throwable $e)
25 return $result->addError(
new Error(
"Could not construct the update query: {$e->getMessage()}"));
28 if ($where !==
'' && $update[0] !==
'')
30 $sql =
"UPDATE {$sqlTableName} SET {$update[0]} WHERE {$where}";
31 $entity->getConnection()->queryExecute($sql);
38 $result->addError(
new Error(
"Could not execute the update query"));
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)