Major changes
- Depends on hint-driven-sql-walker which allows combination of multiple hint handlers
- To migrate to this version, simply change your usages like this:
- Custom output walker is now
HintDrivenSqlWalker::class
UseIndexSqlWalker
got renamed to UseIndexHintHandler
->from(User::class, 'u')
->andWhere('u.id = 1')
->getQuery()
- ->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, UseIndexSqlWalker::class)
- ->setHint(UseIndexSqlWalker::class, [IndexHint::force(User::IDX_FOO, User::TABLE_NAME)])
+ ->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, HintDrivenSqlWalker::class)
+ ->setHint(UseIndexHintHandler::class, [IndexHint::force(User::IDX_FOO, User::TABLE_NAME)])
->getResult();
Dependencies:
- requires
doctrine/orm
2.14.0 (was 2.7.0)