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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/models/BootMenuMapper.php') 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)); } -- cgit v1.2.3-55-g7522