示例#1
0
 /**
  * Overloaded because of PersonForm Unique validator.
  * Returns id when translation for person-id from FIELDNAME to PHPNAME is requested
  *
  * @see PersonFrom
  * @see BaseFormPropel
  * @see parent::translateFieldName
  */
 public static function translateFieldName($name, $fromType, $toType)
 {
     if ($fromType == BasePeer::TYPE_FIELDNAME && $toType == BasePeer::TYPE_PHPNAME && $name == 'person-id') {
         return 'id';
     }
     return parent::translateFieldName($name, $fromType, $toType);
 }