api-platform / api-platform/core

Filter Only The Serializable Fields

オープン
#1,096 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Has a PR
主要言語
PHP
スター
2.6k
フォーク
980
平均マージ
2日 5時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。