Limited the number of fields returned when searching for associated events and zones
This commit is contained in:
parent
d681654e56
commit
3af0600917
|
@ -4,11 +4,13 @@
|
|||
public $hasMany = array(
|
||||
'Event' => array(
|
||||
'className' => 'Event',
|
||||
'foreignKey' => 'MonitorId'
|
||||
'foreignKey' => 'MonitorId',
|
||||
'fields' => 'Event.Id'
|
||||
),
|
||||
'Zone' => array(
|
||||
'className' => 'Zone',
|
||||
'foreignKey' => 'MonitorId'
|
||||
'foreignKey' => 'MonitorId',
|
||||
'fields' => 'Zone.Id'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue