public function save() { try { $attribute = new Gpf_Db_UserAttribute(); $attribute->getSetting($this->getName(), $this->getAccountUserId()); $this->setPrimaryKeyValue($attribute->getPrimaryKeyValue()); $this->update(); } catch (Gpf_DbEngine_NoRowException $e) { $this->insert(); } }