summaryrefslogtreecommitdiffstats
path: root/application/models/PersonMapper.php
diff options
context:
space:
mode:
authorSimon2011-03-09 12:20:55 +0100
committerSimon2011-03-09 12:20:55 +0100
commit1ac1db9336fdfa2f32e775e390a3d9fdaa605c79 (patch)
treebcb7fc97937b9db314b74903ffed61a1d75506ea /application/models/PersonMapper.php
parentoberfläche verändert (diff)
parentACHTUNG: Habe in einigen Mappern die find() Methode geändert, sie liefern je... (diff)
downloadpbs2-1ac1db9336fdfa2f32e775e390a3d9fdaa605c79.tar.gz
pbs2-1ac1db9336fdfa2f32e775e390a3d9fdaa605c79.tar.xz
pbs2-1ac1db9336fdfa2f32e775e390a3d9fdaa605c79.zip
Merge gefixxt
Diffstat (limited to 'application/models/PersonMapper.php')
-rw-r--r--application/models/PersonMapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/models/PersonMapper.php b/application/models/PersonMapper.php
index 74f7250..038670d 100644
--- a/application/models/PersonMapper.php
+++ b/application/models/PersonMapper.php
@@ -66,8 +66,9 @@ class Application_Model_PersonMapper
}
}
- public function find($id, Application_Model_Person $person)
+ public function find($id)
{
+ $person = new Application_Model_Person();
$result = $this->getDbTable()->find($id);
if (0 == count($result)) {
return;
@@ -76,6 +77,7 @@ class Application_Model_PersonMapper
$row = $result->current();
$person->setID($row->personID)->setTitle($row->title)->setName($row->name)->setFirstname($row->firstname)->setStreet($row->street)->setHousenumber($row->housenumber)->setCity($row->city)->setPostalcode($row->postalcode)->setLogindate($row->logindate)->setRegisterdate($row->registerdate)->setEmail($row->email)->setLogin($row->login)->setPassword($row->password)->setPasswordSalt($row->password_salt);
+ return $person;
}
public function fetchAll()