Class constructor, which initializes the default values this object supports. Even though only a specific list of configuration parameters is available by default, the `Query` object uses the `__call()` method to implement automatic getters and setters for any arbitrary piece of data.
This means that any information may be passed into the constructor may be used by the backend data source executing the query (or ignored, if support is not implemented). This is useful if, for example, you wish to extend a core data source and implement custom fucntionality.

Parameters

  • array $config

Source

						public function __construct(array $config = array()) {
		$defaults = array(
			'calculate'  => null,
			'conditions' => array(),
			'fields'     => array(),
			'data'       => array(),
			'model'      => null,
			'alias'      => null,
			'source'     => null,
			'order'      => null,
			'offset'     => null,
			'name'       => null,
			'limit'      => null,
			'page'       => null,
			'group'      => null,
			'comment'    => null,
			'joins'      => array(),
			'with'       => array(),
			'map'        => array(),
			'whitelist'  => array(),
			'relationships' => array()
		);
		parent::__construct($config + $defaults);
	}