diff options
| author | root | 2011-02-09 01:12:05 +0100 |
|---|---|---|
| committer | root | 2011-02-09 01:12:05 +0100 |
| commit | 25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 (patch) | |
| tree | 9f99a10e9fede00f2194973a2635c0d99632f320 /application/models/PoolMapper.php | |
| parent | MapperScript & Mapper angelegt (alle die einen Primärschlüssel besitzen) (diff) | |
| download | pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.gz pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.xz pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.zip | |
Alle Mapper angelegt, Script update
Diffstat (limited to 'application/models/PoolMapper.php')
| -rw-r--r-- | application/models/PoolMapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
