Cake\ORM\Query::__construct PHP Method

__construct() public method

Constructor
public __construct ( Cake\Datasource\ConnectionInterface $connection, Table $table )
$connection Cake\Datasource\ConnectionInterface The connection object
$table Table The table this query is starting on
    public function __construct($connection, $table)
    {
        parent::__construct($connection);
        $this->repository($table);
        if ($this->_repository) {
            $this->addDefaultTypes($this->_repository);
        }
    }