diff options
author | Björn Geiger | 2011-03-23 19:31:03 +0100 |
---|---|---|
committer | Björn Geiger | 2011-03-23 19:31:03 +0100 |
commit | f581446f90526dd3466becddd625d23bd1c26ed4 (patch) | |
tree | 22b5708100e6c71e7cbd3a567527dcfc013fca91 /application/models/RightMapper.php | |
parent | seriel liegt jetzt im root/ (diff) | |
download | pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.tar.gz pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.tar.xz pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.zip |
Rollenverwaltung in Dev Modul
Diffstat (limited to 'application/models/RightMapper.php')
-rw-r--r-- | application/models/RightMapper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/models/RightMapper.php b/application/models/RightMapper.php index 570259a..9905f92 100644 --- a/application/models/RightMapper.php +++ b/application/models/RightMapper.php @@ -66,7 +66,7 @@ class Application_Model_RightMapper } } - public function find($id, Application_Model_Right $right) + public function find($id) { $result = $this->getDbTable()->find($id); if (0 == count($result)) { @@ -75,7 +75,9 @@ class Application_Model_RightMapper $row = $result->current(); + $right = new Application_Model_Right(); $right->setID($row->rightID)->setTitle($row->title)->setDescription($row->description); + return $right; } public function fetchAll() |