ServicegroupQuery: PostgreSQL grouping...

refs #9009
This commit is contained in:
Johannes Meyer 2015-06-18 11:33:09 +02:00
parent b128bef8f0
commit b9479e7da4
1 changed files with 13 additions and 1 deletions

View File

@ -103,7 +103,6 @@ class ServicegroupQuery extends IdoQuery
'sgm.service_object_id = so.object_id', 'sgm.service_object_id = so.object_id',
array() array()
); );
$this->group('sgo.name1');
} }
/** /**
@ -118,4 +117,17 @@ class ServicegroupQuery extends IdoQuery
array() array()
); );
} }
/**
* {@inheritdoc}
*/
public function getGroup()
{
$group = array();
if ($this->hasJoinedVirtualTable('serviceobjects')) {
$group = array('sg.servicegroup_id', 'sgo.object_id');
}
return $group;
}
} }