public function QueryAggregate::prepare in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\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 44 - Contains \Drupal\Core\Entity\Query\Sql\QueryAggregate.
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;
}