summaryrefslogtreecommitdiffstats
path: root/application/models/GroupGroupsMapper.php
diff options
context:
space:
mode:
authorroot2011-02-09 01:12:05 +0100
committerroot2011-02-09 01:12:05 +0100
commit25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 (patch)
tree9f99a10e9fede00f2194973a2635c0d99632f320 /application/models/GroupGroupsMapper.php
parentMapperScript & Mapper angelegt (alle die einen Primärschlüssel besitzen) (diff)
downloadpbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.gz
pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.xz
pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.zip
Alle Mapper angelegt, Script update
Diffstat (limited to 'application/models/GroupGroupsMapper.php')
-rw-r--r--application/models/GroupGroupsMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/models/GroupGroupsMapper.php b/application/models/GroupGroupsMapper.php
index bf0361c..9474116 100644
--- a/application/models/GroupGroupsMapper.php
+++ b/application/models/GroupGroupsMapper.php
@@ -32,7 +32,7 @@ class Application_Model_GroupGroupsMapper
public function save(Application_Model_GroupGroups $groupgroups)
{
- $data = array();
+ $data = array('parentID'=> $groupgroups->getParentID() ,'groupID'=> $groupgroups->getGroupID() );
if (null === ($id = $groupgroups->getID()) ) {
unset($data['id']);
@@ -51,7 +51,7 @@ class Application_Model_GroupGroupsMapper
$row = $result->current();
- $groupgroups;
+ $groupgroups->setParentID($row->parentID)->setGroupID($row->groupID);
}
public function fetchAll()
@@ -61,7 +61,7 @@ class Application_Model_GroupGroupsMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_GroupGroups();
- $entry;
+ $entry->setParentID($row->parentID)->setGroupID($row->groupID);
$entries[] = $entry;
}