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 摘要。