src/DataFormatter.php
public function getRealFields($className, $fields)
    {
        $apiMapping = $this->getApiMapping($className);
        if (is_array($apiMapping) && is_array($fields)) {
            $mappedFields = [];
            foreach ($fields as $field) {
                $mappedFields[] = $this->getMappedKey($apiMapping, $field);
            }
            return $mappedFields;
        }
        return $fields;
    }
public function getRealFields($className, $fields)
    {
        $apiMapping = $this->getApiMapping($className);
        if (is_array($apiMapping) && is_array($fields)) {
            $mappedFields = [];
            foreach ($fields as $field) {
                $mappedFields[] = $this->getMappedKey($apiMapping, $field);
            }
            return $mappedFields;
        }
        return $fields;
    }
public function getRealFields ( $ className , $ fields ) { $ apiMapping = $ this -> getApiMapping ( $ className ) ; if ( is_array ( $ apiMapping ) && is_array ( $ fields ) ) { $ mappedFields = [ ] ; foreach ( $ fields as $ field ) { $ mappedFields [ ] = $ this -> getMappedKey ( $ apiMapping , $ field ) ; } return $ mappedFields ; } return $ fields ; }
Convert an array of aliased field names to their Dataobject field name

@param string $className
@param string[] $fields
@return string[]
Convert an array of aliased field names to their Dataobject field name