Add Manufacturer and CameraModel hasOne relationships
This commit is contained in:
parent
1c01936f75
commit
fe734d4e1e
|
@ -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',
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue