From b86c3f1e438c263335297fa5b45733ff860d66b0 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 25 Apr 2014 02:33:02 +0000 Subject: [PATCH] Zones are deleted when their parent Monitor is --- api/app/Model/Monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/Model/Monitor.php b/api/app/Model/Monitor.php index f8e7417e2..5203dd9ac 100644 --- a/api/app/Model/Monitor.php +++ b/api/app/Model/Monitor.php @@ -71,7 +71,7 @@ class Monitor extends AppModel { 'Zone' => array( 'className' => 'Zone', 'foreignKey' => 'MonitorId', - 'dependent' => false, + 'dependent' => true, 'conditions' => '', 'fields' => '', 'order' => '',