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