Skip to content

Commit

Permalink
Models: Add missing child relation
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Nov 26, 2024
1 parent 8d04588 commit 5adb282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion library/Icingadb/Model/Hostgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function getDefaultSort()
public function createBehaviors(Behaviors $behaviors)
{
$behaviors->add(new ReRoute([
'servicegroup' => 'service.servicegroup'
'servicegroup' => 'service.servicegroup',
'child' => 'host.to.from'
]));

$behaviors->add(new Binary([
Expand Down
3 changes: 2 additions & 1 deletion library/Icingadb/Model/Servicegroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function createBehaviors(Behaviors $behaviors)
{
$behaviors->add(new ReRoute([
'host' => 'service.host',
'hostgroup' => 'service.hostgroup'
'hostgroup' => 'service.hostgroup',
'child' => 'service.to.from'
]));

$behaviors->add(new Binary([
Expand Down

0 comments on commit 5adb282

Please sign in to comment.