From 25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Feb 2011 01:12:05 +0100 Subject: Alle Mapper angelegt, Script update --- application/models/PoolMapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/models/PoolMapper.php') diff --git a/application/models/PoolMapper.php b/application/models/PoolMapper.php index c788a18..8c32e88 100644 --- a/application/models/PoolMapper.php +++ b/application/models/PoolMapper.php @@ -32,7 +32,7 @@ class Application_Model_PoolMapper public function save(Application_Model_Pool $pol) { - $data = array('poolID'=> $pol->getID() ,'title'=> $pol->getTitle() ,'description'=> $pol->getDescription() ,'location'=> $pol->getLocation() ); + $data = array('poolID'=> $pol->getPoolID() ,'title'=> $pol->getTitle() ,'description'=> $pol->getDescription() ,'location'=> $pol->getLocation() ); if (null === ($id = $pol->getID()) ) { unset($data['id']); @@ -51,7 +51,7 @@ class Application_Model_PoolMapper $row = $result->current(); - $pol->setID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); + $pol->setPoolID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); } public function fetchAll() @@ -61,7 +61,7 @@ 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->setPoolID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); $entries[] = $entry; } -- cgit v1.2.3-55-g7522