Sync: Only prefetch relations for IcingaObject
So DatalistEntry can be synced fixes #1048
This commit is contained in:
parent
b773b90ae5
commit
49afcd5855
|
@ -816,7 +816,10 @@ class Sync
|
|||
{
|
||||
PrefetchCache::initialize($this->db);
|
||||
|
||||
IcingaObject::prefetchAllRelationsByType($this->rule->object_type, $this->db);
|
||||
$dummy = IcingaObject::createByType($this->rule->object_type);
|
||||
if ($dummy instanceof IcingaObject) {
|
||||
IcingaObject::prefetchAllRelationsByType($this->rule->object_type, $this->db);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue