`Query::createSubQuery()` attemtps to call `BelongsTo::getThroughFilter()`
Open
@nilmerg is already working on this.
Since Aug 13, 2026.
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 26m
- Merged PRs (30d)
- 1
Description
Since the introduction of relation filters, the RedundancyGroupController of Icingadb Web shows the following stacktrace:
Call to undefined method ipl\Orm\Relation\BelongsTo::getThroughFilter()
#0 /usr/local/src/ipl-orm/src/Compat/FilterProcessor.php(324): ipl\Orm\Query->createSubQuery(Object(Icinga\Module\Icingadb\Model\RedundancyGroup), String, NULL, Boolean)
#1 /usr/local/src/ipl-orm/src/Compat/FilterProcessor.php(194): ipl\Orm\Compat\FilterProcessor->requireAndResolveFilterColumns(Object(ipl\Stdlib\Filter\All), Object(ipl\Orm\Query), NULL)
#2 /usr/local/src/ipl-orm/src/Compat/FilterProcessor.php(83): ipl\Orm\Compat\FilterProcessor->requireAndResolveFilterColumns(Object(ipl\Stdlib\Filter\All), Object(ipl\Orm\Query))
#3 /usr/local/src/ipl-orm/src/Query.php(501): ipl\Orm\Compat\FilterProcessor::resolveFilter(Object(ipl\Stdlib\Filter\All), Object(ipl\Orm\Query))
#4 /usr/local/src/ipl-orm/src/Query.php(758): ipl\Orm\Query->assembleSelect()
#5 /usr/local/src/ipl-orm/src/ResultSet.php(191): ipl\Orm\Query->yieldResults()
#6 [internal function]: ipl\Orm\ResultSet->yieldTraversable(Object(Generator))
#7 /usr/local/src/ipl-orm/src/ResultSet.php(166): Generator->valid()
#8 /usr/local/src/ipl-orm/src/ResultSet.php(141): ipl\Orm\ResultSet->advance()
#9 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Data/DependencyNodes.php(57): ipl\Orm\ResultSet->rewind()
#10 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Data/DependencyNodes.php(74): Icinga\Module\Icingadb\Data\DependencyNodes->getIterator()
#11 [internal function]: Icinga\Module\Icingadb\Data\DependencyNodes->count()
#12 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Common/CommandActions.php(85): count(Object(Icinga\Module\Icingadb\Data\DependencyNodes))
#13 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Common/CommandActions.php(121): Icinga\Module\Icingadb\Controllers\RedundancygroupController->getCommandTargetModel()
#14 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Common/CommandActions.php(258): Icinga\Module\Icingadb\Controllers\RedundancygroupController->isGrantedOnCommandTargets(String)
#15 /usr/share/icingaweb-modules/icingadb/library/Icingadb/Web/Controller.php(471): Icinga\Module\Icingadb\Controllers\RedundancygroupController->checkNowAction()
#16 /icingaweb/library/Icinga/Web/Controller/Dispatcher.php(78): Icinga\Module\Icingadb\Web\Controller->dispatch(String)
#17 /usr/local/src/zf1/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#18 /icingaweb/library/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#19 /icingaweb/library/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch()
#20 /icingaweb/public/index.php(6): require_once(String)
#21 {main}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.