public static function setConfigValueFor($input, $value) { $prefix = sfConfig::get('app_phpbb_prefix', 'Phpbb'); $c = new Criteria(); avrPropelTools::criteriaAdd($c, $prefix . 'Config', 'config_name', $input); $newestUserConfig = avrPropelTools::invokePeerMethod($prefix . 'Config', 'doSelectOne', $c); $newestUserConfig->setConfigValue($value); $newestUserConfig->save(); sfProcessCache::delete('config_values'); sfProcessCache::delete('config_values_dynamic'); }