public function Query::__clone

Same name in this branch

Implements the magic __clone method.

Reset fields and GROUP BY when cloning.

Overrides QueryBase::__clone

File

drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php, line 317
Definition of Drupal\field_sql_storage\Entity\Query.

Class

Query
The SQL storage entity query class.

Namespace

Drupal\field_sql_storage\Entity

Code

public function __clone() {
  parent::__clone();
  $this->sqlFields = array();
  $this->sqlGroupBy = array();
}