public function Tables::__construct

public Tables::__construct(SelectInterface $sql_query)

Parameters

\Drupal\Core\Database\Query\SelectInterface $sql_query:

File

core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 56

Class

Tables
Adds tables and fields to the SQL entity query.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function __construct(SelectInterface $sql_query) {
  $this->sqlQuery = $sql_query;
  $this->entityManager = \Drupal::entityManager();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!Tables.php/function/Tables::__construct/8.1.x