summaryrefslogtreecommitdiffstats
path: root/application/models/BootMenuEntriesMapper.php
diff options
context:
space:
mode:
authormichael pereira2011-03-07 17:53:57 +0100
committermichael pereira2011-03-07 17:53:57 +0100
commitd3b22c724dfdf275f7feb981182d54a18310bcc0 (patch)
treec56c1c61cf1a276ce0b6753bf51ee737388c1e90 /application/models/BootMenuEntriesMapper.php
parentBootmenuentries DB geaendert (diff)
downloadpbs2-d3b22c724dfdf275f7feb981182d54a18310bcc0.tar.gz
pbs2-d3b22c724dfdf275f7feb981182d54a18310bcc0.tar.xz
pbs2-d3b22c724dfdf275f7feb981182d54a18310bcc0.zip
BootMenuEntries fertig
Diffstat (limited to 'application/models/BootMenuEntriesMapper.php')
-rw-r--r--application/models/BootMenuEntriesMapper.php6
1 files changed, 2 insertions, 4 deletions
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;