src/Resources/Table.php
protected static function cleanFields($fields)
    {
        $new = [];
        $fieldList = explode(',', $fields);
        foreach ($fieldList as $f) {
            if (static::ID_FIELD !== trim(strtolower($f))) {
                $new[] = $f;
            }
        }

        return implode(',', $new);
    }
protected static function cleanFields($fields)
    {
        $new = [];
        $fieldList = explode(',', $fields);
        foreach ($fieldList as $f) {
            if (static::ID_FIELD !== trim(strtolower($f))) {
                $new[] = $f;
            }
        }

        return implode(',', $new);
    }
protected static function cleanFields ( $ fields ) { $ new = [ ] ; $ fieldList = explode ( ',' , $ fields ) ; foreach ( $ fieldList as $ f ) { if ( static :: ID_FIELD !== trim ( strtolower ( $ f ) ) ) { $ new [ ] = $ f ; } } return implode ( ',' , $ new ) ; }
Excluding _id field from field list

@param string $fields

@return string
Excluding _id field from field list