From 56d0655309fb13e8a2b8bb86a54206b419c32d18 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 18 Mar 2011 09:59:02 +0100 Subject: Datenbank update, PoolController --- application/models/PoolMapper.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'application/models/PoolMapper.php') diff --git a/application/models/PoolMapper.php b/application/models/PoolMapper.php index 994a3fd..9b875ca 100644 --- a/application/models/PoolMapper.php +++ b/application/models/PoolMapper.php @@ -48,6 +48,7 @@ class Application_Model_PoolMapper { print_a($pol); $data = array('poolID'=> $pol->getID() , + 'groupID'=> $pol->getGroupID() , 'title'=> $pol->getTitle() , 'description'=> $pol->getDescription() , 'location'=> $pol->getLocation() ); @@ -79,6 +80,7 @@ class Application_Model_PoolMapper $row = $result->current(); $pol->setID($row->poolID) + ->setGroupID($row->groupID) ->setTitle($row->title) ->setDescription($row->description) ->setLocation($row->location); @@ -91,7 +93,11 @@ class Application_Model_PoolMapper foreach ($resultSet as $row) { $entry = new Application_Model_Pool(); - $entry->setID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); + $entry->setID($row->poolID) + ->setGroupID($row->groupID) + ->setTitle($row->title) + ->setDescription($row->description) + ->setLocation($row->location); $entries[] = $entry; } -- cgit v1.2.3-55-g7522