api-platform / api-platform/core

Filter Only The Serializable Fields

未关闭
#1,096 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Has a PR
主要语言
PHP
星标
2.6k
派生
980
平均合并
2 天 5 小时
30 天内合并 PR
48

描述

Api Platform is the best API Framework Ever is used. It's great framework.

Recently, when we activate the filter feature without specific fields defined, for example
```
bisnis.filter.order_filter:
parent: 'api_platform.doctrine.orm.order_filter'
arguments: [ ~ ]
tags:
- { name: 'api_platform.filter', id: 'order.filter' }
```

The Api Platform (see Api Doc) processing all fields based on doctrine metadata even the fields is not displayed. Is good choice to filter only the fields that displayed by serialization not all fields.

Reference: https://github.com/api-platform/core/blob/master/src/Bridge/Doctrine/Orm/Filter/OrderFilter.php#L84

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。