2013-05-01 19:02:12 +08:00
|
|
|
<?php
|
|
|
|
class Event extends AppModel {
|
2013-05-02 06:21:46 +08:00
|
|
|
public $useTable = 'Events';
|
2013-05-06 22:36:47 +08:00
|
|
|
public $primaryKey = 'Id';
|
2013-05-02 20:55:59 +08:00
|
|
|
public $belongsTo = array(
|
|
|
|
'Monitor' => array(
|
|
|
|
'className' => 'Monitor',
|
|
|
|
'foreignKey' => 'MonitorId'
|
|
|
|
)
|
|
|
|
);
|
2013-05-31 07:47:32 +08:00
|
|
|
public $hasMany = array(
|
|
|
|
'Frame' => array(
|
|
|
|
'className' => 'Frame',
|
|
|
|
'foreignKey' => 'FrameId',
|
|
|
|
'dependent' => true
|
|
|
|
)
|
|
|
|
);
|
2013-05-01 19:02:12 +08:00
|
|
|
}
|
|
|
|
?>
|