[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Delete FK fix

git at icinga.org git at icinga.org
Mon Jan 10 09:05:00 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: 64e3da437df974c7f780950ea2e62e373a5ad53b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=64e3da437df974c7f780950ea2e62e373a5ad53b

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jan  3 16:00:26 2011 +0100

* Delete FK fix

---

 .../models/Provider/CronksDataModel.class.php      |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/modules/Cronks/models/Provider/CronksDataModel.class.php b/app/modules/Cronks/models/Provider/CronksDataModel.class.php
index b44a683..119d08e 100755
--- a/app/modules/Cronks/models/Provider/CronksDataModel.class.php
+++ b/app/modules/Cronks/models/Provider/CronksDataModel.class.php
@@ -486,13 +486,13 @@ class Cronks_Provider_CronksDataModel extends CronksBaseModel {
 		
 		if ($cronk instanceof Cronk && $cronk->cronk_id > 0) {
 			Doctrine_Manager::getInstance()->getCurrentConnection()->beginTransaction();
-			
-			$cronk->CronkPrincipalCronk->delete();
 			$cronk->CronkCategoryCronk->delete();
-			$cronk->delete();
-			
+			$cronk->CronkPrincipalCronk->delete();
+			$cronk->save();
 			Doctrine_Manager::getInstance()->getCurrentConnection()->commit();
 			
+			$cronk->delete();
+			
 			return true;
 		}
 		else {





More information about the icinga-checkins mailing list