Require virtual table hosts

refs #3564
This commit is contained in:
Eric Lippmann 2018-11-14 10:21:17 +01:00
parent b4afdf4115
commit dda390b3d8
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class HostcontactQuery extends IdoQuery
*/
protected function joinHostgroups()
{
$this->requireVirtualTable('hosts');
$this->select->joinLeft(
['hgm' => $this->prefix . 'hostgroup_members'],
'hgm.host_object_id = ho.object_id',