public function updateBatch($table, $data, $conditions = [])
    {
        $query = $this->db->getQuery(true);

        // Build conditions
        $query = QueryHelper::buildWheres($query, $conditions);

        // Build update values.
        $fields = $this->db->getTable($table)->getColumns();

        $hasField = false;

        foreach ((array) $data as $field => $value) {
            if (!in_array($field, $fields)) {
                continue;
            }

            $query->set(QueryHelper::buildValueAssign($field, $value, $query));

            $hasField = true;
        }

        if (!$hasField) {
            return false;
        }

        $query->update($query->quoteName($table));

        $this->execute($query);

        return true;
    }