use find_one in stead of new to use Cached Server

This commit is contained in:
Isaac Connor 2020-01-10 12:45:30 -05:00
parent ef4ecd40fb
commit d433590f74
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Monitor extends ZM_Object {
}
public function Server() {
return new Server($this->{'ServerId'});
return Server::find_one(array('Id'=>$this->{'ServerId'}));
}
public function __call($fn, array $args){