use find_one in stead of new to use Cached Server
This commit is contained in:
parent
ef4ecd40fb
commit
d433590f74
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue