shipmonk/doctrine-mysql-index-hints
Custom SQL walker for Doctrine allowing usage of MySQL index hints without need of native queries
3.1.2
632K downloads/mo
#4291 most downloaded on Packagist
shipmonk-rnd/doctrine-mysql-index-hints
What this package is like to depend on
Last release 7 months ago
25 Jan 2026
Ships fairly regularly
a new release about every 9 months
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
7 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
7 releases · Aug 2021 to Jan 2026
2022
2023
2024
2025
2026
Releases
latest 7-
3.1.225 Jan 2026 -
3.1.119 Nov 2024 -
3.1.008 Aug 2024Release notes
Open source →New features
Dependencies
- requires
php 8.1(was7.4) - requires
doctrine/orm 3.0(was2.14)
- requires
-
3.0.025 Jan 2024Release notes
Open source →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 UseIndexSqlWalkergot renamed toUseIndexHintHandler
- Custom output walker is now
->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/orm2.14.0 (was 2.7.0)
-
2.1.030 Jan 2023Release notes
Open source →Changes:
- major dependency cleanup, the only needed is now
doctrine/orm ^2.7.0(#22)
- major dependency cleanup, the only needed is now
-
2.0.013 Sep 2021 -
1.0.025 Aug 2021