summaryrefslogtreecommitdiffstats
path: root/application/models/PersonMapper.php
diff options
context:
space:
mode:
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()