Limited the number of fields returned when searching for associated events and zones

This commit is contained in:
Kyle Johnson 2013-05-04 22:41:27 -04:00
parent d681654e56
commit 3af0600917
1 changed files with 4 additions and 2 deletions

View File

@ -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'
)
);