Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Insert.php

function Insert::from

Sets the fromQuery on this InsertQuery object.

Parameters

\Drupal\Core\Database\Query\SelectInterface $query: The query to fetch the rows that should be inserted.

Return value

$this The called object.

File

core/lib/Drupal/Core/Database/Query/Insert.php, line 45

Class

Insert
General class for an abstracted INSERT query.

Namespace

Drupal\Core\Database\Query

Code

public function from(SelectInterface $query) {
    $this->fromQuery = $query;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal