public function save(Default_Model_PendingAccount $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getCode())) {
         $data['code'] = $value->getCode();
     }
     if (!isnull($value->getResearcherID())) {
         $data['researcherid'] = $value->getResearcherID();
     }
     if (!isnull($value->getAccountID())) {
         $data['accountid'] = $value->getAccountID();
     }
     if (!isnull($value->getAccountType())) {
         $data['account_type'] = $value->getAccountType();
     }
     if (!isnull($value->getAccountName())) {
         $data['account_name'] = $value->getAccountName();
     }
     if (!isnull($value->getResolved())) {
         $data['resolved'] = $this->pgBool($value->getResolved());
     }
     if (!isnull($value->getResolvedon())) {
         $data['resolvedon'] = $value->getResolvedon();
     }
     if (!isnull($value->getAddedon())) {
         $data['addedon'] = $value->getAddedon();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }