parent
91fe6913d8
commit
ab628338c2
|
@ -17,6 +17,9 @@ class ContactgroupQuery extends IdoQuery
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
|
'instances' => array(
|
||||||
|
'instance_name' => 'i.instance_name'
|
||||||
|
),
|
||||||
'contactgroups' => array(
|
'contactgroups' => array(
|
||||||
'contactgroup' => 'cgo.name1 COLLATE latin1_general_ci',
|
'contactgroup' => 'cgo.name1 COLLATE latin1_general_ci',
|
||||||
'contactgroup_name' => 'cgo.name1',
|
'contactgroup_name' => 'cgo.name1',
|
||||||
|
@ -187,6 +190,18 @@ class ContactgroupQuery extends IdoQuery
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join instances
|
||||||
|
*/
|
||||||
|
protected function joinInstances()
|
||||||
|
{
|
||||||
|
$this->select->join(
|
||||||
|
array('i' => $this->prefix . 'instances'),
|
||||||
|
'i.instance_id = cg.instance_id',
|
||||||
|
array()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,6 +11,7 @@ class Contactgroup extends DataView
|
||||||
public function getColumns()
|
public function getColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
'instance_name',
|
||||||
'contactgroup_name',
|
'contactgroup_name',
|
||||||
'contactgroup_alias',
|
'contactgroup_alias',
|
||||||
'contact_object_id',
|
'contact_object_id',
|
||||||
|
|
Loading…
Reference in New Issue