summaryrefslogtreecommitdiffstats
path: root/application/models/PoolMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/PoolMapper.php')
-rw-r--r--application/models/PoolMapper.php8
1 files changed, 7 insertions, 1 deletions
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;
}