zoneminder/web/app/Model/Monitor.php

19 lines
356 B
PHP
Raw Normal View History

2013-05-02 06:41:59 +08:00
<?php
class Monitor extends AppModel {
public $useTable = 'Monitors';
public $primaryKey = 'Id';
public $hasMany = array(
'Event' => array(
'className' => 'Event',
'foreignKey' => 'MonitorId',
'fields' => 'Event.Id'
),
'Zone' => array(
'className' => 'Zone',
'foreignKey' => 'MonitorId',
'fields' => 'Zone.Id'
)
);
2013-05-02 06:41:59 +08:00
}
?>