public function QueryAggregate::prepare
public QueryAggregate::prepare()
Prepares the basic query with proper metadata/tags and base fields.
Return value
\Drupal\Core\Entity\Query\Sql\Query Returns the called object.
Throws
\Drupal\Core\Entity\Query\QueryException Thrown if the base table does not exist.
Overrides Query::prepare
File
- core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 39
Class
- QueryAggregate
- The SQL storage entity query aggregate class.
Namespace
Drupal\Core\Entity\Query\SqlCode
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