DateInterval as a textfield creates issues and can't be edited.
メンテナーはふだん 2 日以内に返信
評価
調査の方向性
まず、770行目付近にある doc/fields.rst の DateInterval と TextField のガイダンスを確認し、その後、issue に記載されている CRUD フォームを再現します。DateInterval の値とテキストフィールド間の変換を追跡します。フィールドを string-conversion error なしで表示および編集できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The doc shows that the Doctrine DateInterval should be a TextField in easy admin, but doing so breaks the page. There is a translation layer that is missing to go from a string to a DateInterval.
The exact error is:
The value of the "duration" field of the entity with ID = "1" can't be converted into a string, so it cannot be represented by a TextField or a TextareaField.
I just started using EasyAdmin, so I don't know if there is an easy solution. I tried to use formatValue, to no avail.
To Reproduce
- Create an entity which contains a DateInterval type variable
- Create a CRUD controller a configure the field to be a TextField.
- 主要言語
- PHP
- スター
- 4.3k
- フォーク
- 1.1k
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 52
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EasyCorp/EasyAdminBundle のほかの issue
-
bug design
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
EasyCorp/EasyAdminBundle#7958 ·
メンテナーはふだん 2 日以内に返信
-
design feature
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
EasyCorp/EasyAdminBundle#7930 ·
メンテナーはふだん 2 日以内に返信
-
design
難易度 2/5 1時間未満 初心者へのやさしさ 88/100
EasyCorp/EasyAdminBundle#7879 ·
メンテナーはふだん 2 日以内に返信
-
design
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
EasyCorp/EasyAdminBundle#7875 ·
メンテナーはふだん 2 日以内に返信
-
#[AdminRoute]: the requirements of an action silently replace the ones of the class対応中かも @anthonyhacart が 2 日前に担当しました。 オープンfeature
難易度 3/5 半日 初心者へのやさしさ 30/100
EasyCorp/EasyAdminBundle#7956 ·
メンテナーはふだん 2 日以内に返信
EasyCorp/EasyAdminBundle の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vimeo/psalm#15150 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
forms ui
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
taskforcesh/bullmq#5238 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it対応中かも @bfs2021 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信