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\Sql

Code

public function prepare() {
  parent::prepare();
  // Throw away the id fields.
  $this->sqlFields = array();
  return $this;
}
doc_Drupal
2016-10-29 09:35:32
Comments
Leave a Comment

Please login to continue.