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(
|
public $hasMany = array(
|
||||||
'Event' => array(
|
'Event' => array(
|
||||||
'className' => 'Event',
|
'className' => 'Event',
|
||||||
'foreignKey' => 'MonitorId'
|
'foreignKey' => 'MonitorId',
|
||||||
|
'fields' => 'Event.Id'
|
||||||
),
|
),
|
||||||
'Zone' => array(
|
'Zone' => array(
|
||||||
'className' => 'Zone',
|
'className' => 'Zone',
|
||||||
'foreignKey' => 'MonitorId'
|
'foreignKey' => 'MonitorId',
|
||||||
|
'fields' => 'Zone.Id'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue