summaryrefslogtreecommitdiffstats
path: root/application/models/BootMenuEntriesMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/BootMenuEntriesMapper.php')
-rw-r--r--application/models/BootMenuEntriesMapper.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php
index d697c10..346664c 100644
--- a/application/models/BootMenuEntriesMapper.php
+++ b/application/models/BootMenuEntriesMapper.php
@@ -13,8 +13,18 @@ class Application_Model_BootMenuEntriesMapper
->from($this->_dbTable)
->where($criteria . ' = ?', $value);
$stmt = $select->query();
- $result = $stmt->fetchAll();
- return $result;
+ $resultSet = $stmt->fetchAll();
+
+ $entries = array();
+ foreach ($resultSet as $row) {
+
+ $entry = new Application_Model_BootMenuEntries($row);
+ $entry->setID($row['bootmenuentriesID']);
+ $entries[] = $entry;
+ }
+
+ return $entries;
+
}catch (Zend_Exception $e) {
echo "Error message 2: " . $e->getMessage() . "\n";
}