protected function newBaseQueryBuilder() { $conn = $this->getConnection(); $grammar = $conn->getQueryGrammar(); return new QueryBuilder($conn, $grammar, $conn->getPostProcessor()); }
/** * Get a new query builder instance for the connection. * * @return Builder */ protected function newBaseQueryBuilder() { $connection = $this->getConnection(); // Check the connection type if ($connection instanceof \duxet\Rethinkdb\Connection) { return new QueryBuilder($connection); } return parent::newBaseQueryBuilder(); }