/**
  * Translates a fieldname to another type
  *
  * @param      string $name field name
  * @param      string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
  *                         BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::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.
  */
 public static function translateFieldName($name, $fromType, $toType)
 {
     $toNames = CustomListElementPeer::getFieldNames($toType);
     $key = isset(CustomListElementPeer::$fieldKeys[$fromType][$name]) ? CustomListElementPeer::$fieldKeys[$fromType][$name] : null;
     if ($key === null) {
         throw new PropelException("'{$name}' could not be found in the field names of type '{$fromType}'. These are: " . print_r(CustomListElementPeer::$fieldKeys[$fromType], true));
     }
     return $toNames[$key];
 }