Releases: shipmonk-rnd/doctrine-mysql-optimizer-hints
Releases · shipmonk-rnd/doctrine-mysql-optimizer-hints
2.1.0
2.0.0
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
OptimizerHintsSqlWalker
got renamed toOptimizerHintsHintHandler
- Custom output walker is now
->from(Entity::class, 'e')
->andWhere('e.id = 1')
->getQuery()
- ->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, OptimizerHintsSqlWalker::class)
- ->setHint(OptimizerHintsSqlWalker::class, ['MAX_EXECUTION_TIME(1000)'])
+ ->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, HintDrivenSqlWalker::class)
+ ->setHint(OptimizerHintsHintHandler::class, ['MAX_EXECUTION_TIME(1000)'])
->getResult();
Dependencies:
- requires
doctrine/orm
2.14.0 (was 2.7.0)