summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorSimon2011-04-11 12:20:34 +0200
committerSimon2011-04-11 12:20:34 +0200
commit93857a149806a5bd459050e7d4e27c5f8ebdaa42 (patch)
tree6dcbf71edd515adb8f0a1e3610447132de41a4ef /application/models
parentRecht um als neu registrierter Benutzer Gruppen beizutreten (diff)
downloadpbs2-93857a149806a5bd459050e7d4e27c5f8ebdaa42.tar.gz
pbs2-93857a149806a5bd459050e7d4e27c5f8ebdaa42.tar.xz
pbs2-93857a149806a5bd459050e7d4e27c5f8ebdaa42.zip
speichern return die id der elemente beim speichern der models
Diffstat (limited to 'application/models')
-rw-r--r--application/models/BootMenuMapper.php2
-rw-r--r--application/models/MembershipMapper.php2
2 files changed, 2 insertions, 2 deletions
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));
}