From d3b22c724dfdf275f7feb981182d54a18310bcc0 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 7 Mar 2011 17:53:57 +0100 Subject: BootMenuEntries fertig --- application/models/BootMenuEntriesMapper.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'application/models/BootMenuEntriesMapper.php') diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php index 632d578..a2a497a 100644 --- a/application/models/BootMenuEntriesMapper.php +++ b/application/models/BootMenuEntriesMapper.php @@ -38,7 +38,7 @@ class Application_Model_BootMenuEntriesMapper unset($data['bootmenuentriesID']); $this->getDbTable()->insert($data); } else { - $this->getDbTable()->update($data, array('bootosID = ?' => $id)); + $this->getDbTable()->update($data, array('bootmenuentriesID = ?' => $id)); } } @@ -60,7 +60,7 @@ class Application_Model_BootMenuEntriesMapper $row = $result->current(); - $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setOrder($row->order); + $botmenuentries->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setOrder($row->order); } public function fetchAll() @@ -69,9 +69,7 @@ class Application_Model_BootMenuEntriesMapper $entries = array(); foreach ($resultSet as $row) { $entry = new Application_Model_BootMenuEntries(); - $entry->setID($row->bootmenuentriesID)->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setConfigID($row->configID)->setKcl($row->kcl)->setOrder($row->order); - $entries[] = $entry; } return $entries; -- cgit v1.2.3-55-g7522