예제 #1
0
 public function getFieldNameFromPeer($field_name)
 {
     $res = AnnotationPeer::translateFieldName($field_name, $this->field_name_translation_type, BasePeer::TYPE_COLNAME);
     return $res;
 }
예제 #2
0
 /**
  * Retrieves a field from the object by name passed in as a string.
  *
  * @param      string $name name
  * @param      string $type The type of fieldname the $name is of:
  *                     one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
  *                     BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
  * @return     mixed Value of field.
  */
 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
 {
     $pos = AnnotationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
     $field = $this->getByPosition($pos);
     return $field;
 }