From 93857a149806a5bd459050e7d4e27c5f8ebdaa42 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 11 Apr 2011 12:20:34 +0200 Subject: speichern return die id der elemente beim speichern der models --- application/models/BootMenuMapper.php | 2 +- application/models/MembershipMapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'application') diff --git a/application/models/BootMenuMapper.php b/application/models/BootMenuMapper.php index 1730181..1717cf6 100644 --- a/application/models/BootMenuMapper.php +++ b/application/models/BootMenuMapper.php @@ -78,7 +78,7 @@ class Application_Model_BootMenuMapper if (null === ($id = $botmenu->getID()) ) { unset($data['bootmenuID']); - $this->getDbTable()->insert($data); + return $this->getDbTable()->insert($data); } else { $this->getDbTable()->update($data, array('bootmenuID = ?' => $id)); } diff --git a/application/models/MembershipMapper.php b/application/models/MembershipMapper.php index 67b4985..94f5236 100644 --- a/application/models/MembershipMapper.php +++ b/application/models/MembershipMapper.php @@ -78,7 +78,7 @@ class Application_Model_MembershipMapper if (null === ($id = $membership->getID()) ) { unset($data['membershipID']); - $this->getDbTable()->insert($data); + return $this->getDbTable()->insert($data); } else { $this->getDbTable()->update($data, array('membershipID = ?' => $id)); } -- cgit v1.2.3-55-g7522