src/Settings.php
public function load($data)
    {
        $db = Yii::$app->db->createCommand();
        $db->truncateTable($this->tableName)->execute();

        if (is_array($data) && count($data)) {
            $db->batchInsert($this->tableName, ['key', 'value'], $this->prepareDataForInsert($data))->execute();
        }
        $this->updateData($data);
    }
public function load($data)
    {
        $db = Yii::$app->db->createCommand();
        $db->truncateTable($this->tableName)->execute();

        if (is_array($data) && count($data)) {
            $db->batchInsert($this->tableName, ['key', 'value'], $this->prepareDataForInsert($data))->execute();
        }
        $this->updateData($data);
    }
Load data

@param array $data