src/Resources/BaseDbTableResource.php
protected function parseValueForSet($value, $field_info, $for_update = false)
    {
        $value = $this->parent->getSchema()->typecastToNative($value, $field_info);

        if (!empty($function = $field_info->getDbFunction($for_update ? DbFunctionUses::UPDATE : DbFunctionUses::INSERT))) {
            $function = str_ireplace('{value}', (is_string($value) ? "'$value'" : $value), $function);
            $value = $this->parent->getConnection()->raw($function);
        }

        return $value;
    }
protected function parseValueForSet($value, $field_info, $for_update = false)
    {
        $value = $this->parent->getSchema()->typecastToNative($value, $field_info);

        if (!empty($function = $field_info->getDbFunction($for_update ? DbFunctionUses::UPDATE : DbFunctionUses::INSERT))) {
            $function = str_ireplace('{value}', (is_string($value) ? "'$value'" : $value), $function);
            $value = $this->parent->getConnection()->raw($function);
        }

        return $value;
    }
@param mixed        $value
@param ColumnSchema $field_info
@param boolean      $for_update

@return mixed
@throws \DreamFactory\Core\Exceptions\BadRequestException
@throws \Exception