Skip to content

Releases: shipmonk-rnd/doctrine-mysql-optimizer-hints

2.1.0

08 Aug 13:28
a56b6b0
Compare
Choose a tag to compare

Dependencies:

  • requires doctrine/orm version 3.0 (was 2.14)
  • requires php version 8.1 (was 7.2)

2.0.0

25 Jan 10:42
a50fc94
Compare
Choose a tag to compare

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 to OptimizerHintsHintHandler
     ->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)

1.0.0

29 Nov 13:51
28ea941
Compare
Choose a tag to compare

Initial release

  • Support PHP 7.2+