diff options
author | michael pereira | 2011-04-04 17:12:48 +0200 |
---|---|---|
committer | michael pereira | 2011-04-04 17:12:48 +0200 |
commit | 8ceb7bad18f257127ad5790a9c0ec157d7e03f4d (patch) | |
tree | a83b3d35741914087db7eb8c169c1f5c3b0bd02a /application/modules/dev/controllers/PersonController.php | |
parent | getRessoources bei Play werden angezeigt (diff) | |
download | pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.gz pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.xz pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.zip |
WICHTIG findBy Methode geändert & alles angepasst, siehe Ticket
Diffstat (limited to 'application/modules/dev/controllers/PersonController.php')
-rw-r--r-- | application/modules/dev/controllers/PersonController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/dev/controllers/PersonController.php b/application/modules/dev/controllers/PersonController.php index 40e51af..a403038 100644 --- a/application/modules/dev/controllers/PersonController.php +++ b/application/modules/dev/controllers/PersonController.php @@ -13,7 +13,7 @@ class dev_PersonController extends Zend_Controller_Action public function init() { if (Zend_Auth::getInstance()->hasIdentity()) { $this->personmapper = new Application_Model_PersonMapper(); - $result = $this->personmapper->findBy('email', Zend_Auth::getInstance()->getIdentity()); + $result = $this->personmapper->findBy(array('email' => Zend_Auth::getInstance()->getIdentity()),true); $this->person = new Application_Model_Person($result[0]); $this->person->setID($result[0]['personID']); $this->groupMapper = new Application_Model_GroupMapper(); @@ -85,7 +85,7 @@ class dev_PersonController extends Zend_Controller_Action { $this->view->person = $this->person; $allgroups = $this->groupMapper->fetchAll(); - $groupRequests = $this->groupRequestMapper->findBy('personID', $this->person->getID()); + $groupRequests = $this->groupRequestMapper->findBy(array('personID' => $this->person->getID()),true); $count = 0; foreach($allgroups as $group) { foreach($groupRequests as $groupRequest) { |