Need to include pkg_msgs when lazyloading relations
This commit is contained in:
parent
df07d9978e
commit
dcf34d9be2
@ -209,7 +209,7 @@ class Address extends Model
|
|||||||
$o = $query
|
$o = $query
|
||||||
->where('region_id',$ftn['n'])
|
->where('region_id',$ftn['n'])
|
||||||
->where('host_id',$ftn['n'])
|
->where('host_id',$ftn['n'])
|
||||||
->with(['system:id,active,name,address'])
|
->with(['system:id,active,name,address,pkt_msgs'])
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
// Look for a normal address
|
// Look for a normal address
|
||||||
@ -224,7 +224,7 @@ class Address extends Model
|
|||||||
})
|
})
|
||||||
->orWhere('host_id',$ftn['n']);
|
->orWhere('host_id',$ftn['n']);
|
||||||
})
|
})
|
||||||
->with(['system:id,active,name,address'])
|
->with(['system:id,active,name,address,pkt_msgs'])
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
// Check and see if we are a flattened domain, our address might be available with a different zone.
|
// Check and see if we are a flattened domain, our address might be available with a different zone.
|
||||||
|
Loading…
Reference in New Issue
Block a user