public static function translateFieldName($name, $fromType, $toType)
    {
        $toNames = static::getFieldNames($toType);
        $key = isset(static::$fieldKeys[$fromType][$name]) ? static::$fieldKeys[$fromType][$name] : null;
        if (null === $key) {
            throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(static::$fieldKeys[$fromType], true));
        }

        return $toNames[$key];
    }
public static function translateFieldName($name, $fromType, $toType)
    {
        $toNames = static::getFieldNames($toType);
        $key = isset(static::$fieldKeys[$fromType][$name]) ? static::$fieldKeys[$fromType][$name] : null;
        if (null === $key) {
            throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(static::$fieldKeys[$fromType], true));
        }

        return $toNames[$key];
    }
public static function translateFieldName ( $ name , $ fromType , $ toType ) { $ toNames = static :: getFieldNames ( $ toType ) ; $ key = isset ( static :: $ fieldKeys [ $ fromType ] [ $ name ] ) ? static :: $ fieldKeys [ $ fromType ] [ $ name ] : null ; if ( null === $ key ) { throw new PropelException ( "'$name' could not be found in the field names of type '$fromType'. These are: " . print_r ( static :: $ fieldKeys [ $ fromType ] , true ) ) ; } return $ toNames [ $ key ] ; }
Translates a fieldname to another type

@param  string          $name     field name
@param  string          $fromType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME
TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM
@param  string          $toType   One of the class type constants
@return string          translated name of the field.
@throws PropelException - if the specified name could not be found in the fieldname mappings.
Translates a fieldname to another type