From f1654848b7e19f2ffdc8bd7e295526e1e1106ce8 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 30 Mar 2011 13:17:49 +0200 Subject: findBy Methode angepasst --- application/models/BootOsMapper.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'application/models/BootOsMapper.php') diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php index dda5f68..74fced0 100644 --- a/application/models/BootOsMapper.php +++ b/application/models/BootOsMapper.php @@ -15,7 +15,14 @@ class Application_Model_BootOsMapper $stmt = $select->query(); $result = $stmt->fetchAll(); - return $result; + $entries = array(); + foreach ($result as $row) { + $entry = new Application_Model_BootOs($row); + $entry->setID($row['bootosID']); + $entries[] = $entry; + } + + return $entries; }catch (Zend_Exception $e) { echo "Error message 2: " . $e->getMessage() . "\n"; -- cgit v1.2.3-55-g7522