-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Milestone
Description
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.
Reactions are currently unavailable