Skip to content

Commit

Permalink
Merge pull request #50 from skipperbent/v3-development
Browse files Browse the repository at this point in the history
Updated documentation
  • Loading branch information
skipperbent authored Jan 16, 2018
2 parents 9bbed71 + bc9cc95 commit 8ca1468
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ composer install pecee/pixie
- [**Delete**](#delete)
- [Transactions](#transactions)
- [Get Built Query](#get-built-query)
- [Get QueryObject from last executed query](#get-queryobject-from-last-executed-query)
- [Sub Queries and Nested Queries](#sub-queries-and-nested-queries)
- [Get PDO Instance](#get-pdo-instance)
- [Fetch results as objects of specified class](#fetch-results-as-objects-of-specified-class)
Expand Down Expand Up @@ -783,6 +784,16 @@ Calling the `getRawSql()` method will return a query including bindings like thi
SELECT * FROM my_table where `id` = 3
```

#### Get QueryObject from last executed query

You can also retrieve the query-object from the last executed query.

**Example:**

```php
$queryString = $qb->getLastQuery()->getRawSql();
```

### Sub Queries and Nested Queries

Rarely but you may need to do sub queries or nested queries. Pixie is powerful enough to do this for you. You can create different query objects and use the `$queryBuilder->subQuery()` method.
Expand Down

0 comments on commit 8ca1468

Please sign in to comment.