Add Manufacturer and CameraModel hasOne relationships

This commit is contained in:
Isaac Connor 2021-09-27 10:56:50 -04:00
parent 1c01936f75
commit fe734d4e1e
1 changed files with 10 additions and 0 deletions

View File

@ -139,6 +139,16 @@ class Monitor extends AppModel {
'className' => 'Event_Summary',
'foreignKey' => 'MonitorId',
'joinTable' => 'Event_Summaries',
),
'Manufacturer' => array(
'className' => 'Manufacturer',
'foreignKey' => 'Id',
'joinTable' => 'Manufacturers',
),
'CameraModel' => array(
'className' => 'CameraModel',
'foreignKey' => 'Id',
'joinTable' => 'Models',
)
);