original_string: protected function dbInsert($category, $key, $value)
      {
          $created_by = \Yii::$app->user->getId();
          $this->getDb()->createCommand('
          INSERT INTO
              {{setting}} (`category`, `key`, `value`, `created_at`, `created_by`)
          VALUES
              (:category, :key, :value, NOW(), :created_by)
          ', compact('category', 'key', 'value', 'created_by'))->execute();
      }
code: protected function dbInsert($category, $key, $value)
      {
          $created_by = \Yii::$app->user->getId();
          $this->getDb()->createCommand('
          INSERT INTO
              {{setting}} (`category`, `key`, `value`, `created_at`, `created_by`)
          VALUES
              (:category, :key, :value, NOW(), :created_by)
          ', compact('category', 'key', 'value', 'created_by'))->execute();
      }
code_tokens: protected function dbInsert ( $ category , $ key , $ value ) { $ created_by = \ Yii :: $ app -> user -> getId ( ) ; $ this -> getDb ( ) -> createCommand ( '
          INSERT INTO
              {{setting}} (`category`, `key`, `value`, `created_at`, `created_by`)
          VALUES
              (:category, :key, :value, NOW(), :created_by)
          ' , compact ( 'category' , 'key' , 'value' , 'created_by' ) ) -> execute ( ) ; }
docstring: Stores settings in database
  
  @param string $category Category name
  @param string $key Setting key
  @param string $value Setting value
  @throws \yii\db\Exception
docstring_tokens: Stores settings in database