You are here

public function QueryBase::__clone in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::__clone()

Makes sure that the Condition object is cloned as well.

1 call to QueryBase::__clone()
Query::__clone in core/lib/Drupal/Core/Entity/Query/Sql/Query.php
Implements the magic __clone method.
1 method overrides QueryBase::__clone()
Query::__clone in core/lib/Drupal/Core/Entity/Query/Sql/Query.php
Implements the magic __clone method.

File

core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 343

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

public function __clone() {
  $this->condition = clone $this->condition;
}