Introduce a Group_Monitor class to ease loading this relationship

This commit is contained in:
Isaac Connor 2020-08-31 18:28:53 -04:00
parent e120e21b11
commit 9b36b68ccc
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace ZM;
class Group_Monitor extends ZM_Object {
protected static $table = 'Groups_Monitors';
protected $defaults = array(
'Id' => null,
'GroupId' => null,
'MonitorId' => null,
);
public static function find( $parameters = array(), $options = array() ) {
return ZM_Object::_find(get_class(), $parameters, $options);
}
public static function find_one( $parameters = array(), $options = array() ) {
return ZM_Object::_find_one(get_class(), $parameters, $options);
}
} # end class Group_Monitor
?>