mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
Add Manufacturer and CameraModel hasOne relationships
This commit is contained in:
@@ -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',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user