diff options
| author | Simon | 2011-03-18 09:59:02 +0100 |
|---|---|---|
| committer | Simon | 2011-03-18 09:59:02 +0100 |
| commit | 56d0655309fb13e8a2b8bb86a54206b419c32d18 (patch) | |
| tree | 8ffdf1cfc00eef35ec08d2310e62566df55508ce /application/models/PoolMapper.php | |
| parent | Person und Gruppen, Fehler korrigiert + Layout (diff) | |
| download | pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.tar.gz pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.tar.xz pbs2-56d0655309fb13e8a2b8bb86a54206b419c32d18.zip | |
Datenbank update, PoolController
Diffstat (limited to 'application/models/PoolMapper.php')
| -rw-r--r-- | application/models/PoolMapper.php | 8 |
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; } |
