public function SelectExtender::__clone in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::__clone()
Clone magic method.
Select queries have dependent objects that must be deep-cloned. The connection object itself, however, should not be cloned as that would duplicate the connection itself.
Overrides SelectInterface::__clone
File
- core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php, line 487 - Contains \Drupal\Core\Database\Query\SelectExtender.
Class
- SelectExtender
- The base extender class for Select queries.
Namespace
Drupal\Core\Database\QueryCode
public function __clone() {
$this->uniqueIdentifier = uniqid('', TRUE);
// We need to deep-clone the query we're wrapping, which in turn may
// deep-clone other objects. Exciting!
$this->query = clone $this->query;
}