summaryrefslogtreecommitdiffstats
path: root/application/models/BootIsoMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/BootIsoMapper.php')
-rw-r--r--application/models/BootIsoMapper.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/application/models/BootIsoMapper.php b/application/models/BootIsoMapper.php
index 397d393..52849b2 100644
--- a/application/models/BootIsoMapper.php
+++ b/application/models/BootIsoMapper.php
@@ -14,7 +14,16 @@ class Application_Model_BootIsoMapper
->where($criteria . ' = ?', $value);
$stmt = $select->query();
$result = $stmt->fetchAll();
- return $result;
+
+ $entries = array();
+ foreach ($result as $row) {
+ $entry = new Application_Model_BootIso($row);
+ $entry->setID($row['bootisoID']);
+ $entries[] = $entry;
+ }
+
+ return $entries;
+
}catch (Zend_Exception $e) {
echo "Error message 2: " . $e->getMessage() . "\n";
}