public static function retrieveCurrent()
 {
     $afUser = sfContext::getInstance()->getUser()->getAppFlowerUser();
     if ($afUser->isAnonymous()) {
         return new afWidgetHelpSettings();
     }
     $userId = $afUser->getId();
     $c = new Criteria();
     $c->add(self::USER_ID, $userId);
     $obj = self::doSelectOne($c);
     if ($obj != null) {
         return $obj;
     } else {
         $obj = new afWidgetHelpSettings();
         $obj->setUserId($userId);
         $obj->save();
         return $obj;
     }
 }
 /**
  * Exclude object from result
  *
  * @param     afWidgetHelpSettings $afWidgetHelpSettings Object to remove from the list of results
  *
  * @return    afWidgetHelpSettingsQuery The current query, for fluid interface
  */
 public function prune($afWidgetHelpSettings = null)
 {
     if ($afWidgetHelpSettings) {
         $this->addUsingAlias(afWidgetHelpSettingsPeer::ID, $afWidgetHelpSettings->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }