Skip to content

3.0.0

Compare
Choose a tag to compare
@janedbal janedbal released this 25 Jan 10:54
· 26 commits to master since this release
8a24880

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)