source/Core/Model/FieldNameHelper.php
public function getFullFieldNames($tableName, $fieldNames)
    {
        $combinedFields = [];
        $tablePrefix = strtolower($tableName) . '__';
        foreach ($fieldNames as $fieldName) {
            $fieldName = strtolower($fieldName);

            $fieldNameWithoutTableName = str_replace($tablePrefix, '', $fieldName);
            $combinedFields[] = $fieldNameWithoutTableName;

            if (strpos($fieldName, $tablePrefix) !== 0) {
                $fieldName = $tablePrefix . $fieldName;
            }

            $combinedFields[] = $fieldName;
        }

        return $combinedFields;
    }
public function getFullFieldNames($tableName, $fieldNames)
    {
        $combinedFields = [];
        $tablePrefix = strtolower($tableName) . '__';
        foreach ($fieldNames as $fieldName) {
            $fieldName = strtolower($fieldName);

            $fieldNameWithoutTableName = str_replace($tablePrefix, '', $fieldName);
            $combinedFields[] = $fieldNameWithoutTableName;

            if (strpos($fieldName, $tablePrefix) !== 0) {
                $fieldName = $tablePrefix . $fieldName;
            }

            $combinedFields[] = $fieldName;
        }

        return $combinedFields;
    }
public function getFullFieldNames ( $ tableName , $ fieldNames ) { $ combinedFields = [ ] ; $ tablePrefix = strtolower ( $ tableName ) . '__' ; foreach ( $ fieldNames as $ fieldName ) { $ fieldName = strtolower ( $ fieldName ) ; $ fieldNameWithoutTableName = str_replace ( $ tablePrefix , '' , $ fieldName ) ; $ combinedFields [ ] = $ fieldNameWithoutTableName ; if ( strpos ( $ fieldName , $ tablePrefix ) !== 0 ) { $ fieldName = $ tablePrefix . $ fieldName ; } $ combinedFields [ ] = $ fieldName ; } return $ combinedFields ; }
Return field names with and without table name as a prefix.

@param string $tableName
@param array  $fieldNames

@return array
Return field names with and without table name as a prefix .