Skip to content

Commit 4fc82cc

Browse files
committed
Fix README: add getQuery() call before setHint()
Hints should be set on the Query object, not the QueryBuilder. The example now correctly shows calling getQuery() before setHint(). Fixes #58
1 parent 83dcdff commit 4fc82cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ composer require shipmonk/doctrine-hint-driven-sql-walker
1717

1818
```php
1919
$queryBuilder
20+
->getQuery()
2021
->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, HintDrivenSqlWalker::class)
2122
->setHint(MaxExecutionTimeHintHandler::class, 1000)
2223
```

0 commit comments

Comments
 (0)