Skip to content

Query::createSubQuery() attemtps to call BelongsTo::getThroughFilter() #170

Description

@BastianLedererIcinga

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions