Sync: Only prefetch relations for IcingaObject

So DatalistEntry can be synced

fixes #1048
This commit is contained in:
Markus Frosch 2018-05-22 10:50:57 +02:00 committed by Thomas Gelf
parent b773b90ae5
commit 49afcd5855
1 changed files with 4 additions and 1 deletions

View File

@ -816,7 +816,10 @@ class Sync
{
PrefetchCache::initialize($this->db);
$dummy = IcingaObject::createByType($this->rule->object_type);
if ($dummy instanceof IcingaObject) {
IcingaObject::prefetchAllRelationsByType($this->rule->object_type, $this->db);
}
return $this;
}