From 812efdb14cddc001d8ea3dd9e9ad1cc653f38efd Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 9 Jun 2015 12:22:28 +0000 Subject: [PATCH] Removed hasmany relationship from Control - it should not be mapped into any other controller --- web/api/app/Model/Control.php | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/web/api/app/Model/Control.php b/web/api/app/Model/Control.php index 8788086dc..d5716cc66 100644 --- a/web/api/app/Model/Control.php +++ b/web/api/app/Model/Control.php @@ -51,40 +51,4 @@ class Control extends AppModel { ), ); - //The Associations below have been created with all possible keys, those that are not needed can be removed - -/** - * hasMany associations - * - * @var array - */ - public $hasMany = array( - 'Event' => array( - 'className' => 'Event', - 'foreignKey' => 'ControlId', - 'dependent' => false, - 'conditions' => '', - 'fields' => '', - 'order' => '', - 'limit' => '', - 'offset' => '', - 'exclusive' => '', - 'finderQuery' => '', - 'counterQuery' => '' - ), - 'Zone' => array( - 'className' => 'Zone', - 'foreignKey' => 'ControlId', - 'dependent' => true, - 'conditions' => '', - 'fields' => '', - 'order' => '', - 'limit' => '', - 'offset' => '', - 'exclusive' => '', - 'finderQuery' => '', - 'counterQuery' => '' - ) - ); - }