Commit a94c8d5c authored by catch's avatar catch
Browse files

Issue #2772321 by msankhala, shashikant_chauhan, dhruveshdtripathi,...

Issue #2772321 by msankhala, shashikant_chauhan, dhruveshdtripathi, vimal_nadar, joachim: insert() and other public methods with an  param should refer to where to find details on this

(cherry picked from commit 4ba4c09f)
parent 3c6d1f25
Loading
Loading
Loading
Loading
+12 −3
Changes for core/lib/Drupal/Core/Database/Connection.php: 12 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -808,12 +808,15 @@ public function select($table, $alias = NULL, array $options = []) {
   * @param string $table
   *   The table to use for the insert statement.
   * @param array $options
   *   (optional) An array of options on the query.
   *   (optional) An associative array of options to control how the query is
   *   run. The given options will be merged with
   *   \Drupal\Core\Database\Connection::defaultOptions().
   *
   * @return \Drupal\Core\Database\Query\Insert
   *   A new Insert query object.
   *
   * @see \Drupal\Core\Database\Query\Insert
   * @see \Drupal\Core\Database\Connection::defaultOptions()
   */
  public function insert($table, array $options = []) {
    $class = $this->getDriverClass('Insert');
@@ -862,12 +865,15 @@ public function upsert($table, array $options = []) {
   * @param string $table
   *   The table to use for the update statement.
   * @param array $options
   *   (optional) An array of options on the query.
   *   (optional) An associative array of options to control how the query is
   *   run. The given options will be merged with
   *   \Drupal\Core\Database\Connection::defaultOptions().
   *
   * @return \Drupal\Core\Database\Query\Update
   *   A new Update query object.
   *
   * @see \Drupal\Core\Database\Query\Update
   * @see \Drupal\Core\Database\Connection::defaultOptions()
   */
  public function update($table, array $options = []) {
    $class = $this->getDriverClass('Update');
@@ -880,12 +886,15 @@ public function update($table, array $options = []) {
   * @param string $table
   *   The table to use for the delete statement.
   * @param array $options
   *   (optional) An array of options on the query.
   *   (optional) An associative array of options to control how the query is
   *   run. The given options will be merged with
   *   \Drupal\Core\Database\Connection::defaultOptions().
   *
   * @return \Drupal\Core\Database\Query\Delete
   *   A new Delete query object.
   *
   * @see \Drupal\Core\Database\Query\Delete
   * @see \Drupal\Core\Database\Connection::defaultOptions()
   */
  public function delete($table, array $options = []) {
    $class = $this->getDriverClass('Delete');