DatabaseQuery::copyTo()
Copy queries from this DatabaseQuery to another DatabaseQuery
If you want to copy bind values you should also call copyBindValuesTo($query) afterwards.
Available since version 3.0.157.
Usage
// basic usage
$int = $databaseQuery->copyTo(DatabaseQuery $query);
// usage with all arguments
$int = $databaseQuery->copyTo(DatabaseQuery $query, array $methods = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$query | DatabaseQuery | Query to copy data to |
$methods (optional) | array | Optionally specify the names of methods to copy, otherwise all are copied |
Return value
intTotal items copied
DatabaseQuery methods and properties
API reference based on ProcessWire core version 3.0.252