public QueryAggregate::prepare()
Prepares the basic query with proper metadata/tags and base fields.
\Drupal\Core\Entity\Query\Sql\Query Returns the called object.
\Drupal\Core\Entity\Query\QueryException Thrown if the base table does not exist.
Overrides Query::prepare
public function prepare() { parent::prepare(); // Throw away the id fields. $this->sqlFields = array(); return $this; }
© 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!QueryAggregate.php/function/QueryAggregate::prepare/8.1.x