public function save(Default_Model_ActorGroupMember $value) { global $application; $data = array(); if (!isnull($value->getId())) { $data['id'] = $value->getId(); } if (!isnull($value->getGroupID())) { $data['groupid'] = $value->getGroupID(); } if (!isnull($value->getActorGUID())) { $data['actorid'] = $value->getActorGUID(); } if (!isnull($value->getPayload())) { $data['payload'] = $value->getPayload(); } $q1 = ''; $q2 = ''; if (null === ($id = $value->id)) { unset($data['']); $this->getDbTable()->insert($data); } else { $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2); $this->getDbTable()->update($data, $s); } }