© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago
fiveG

relationship datetime property not hydrated when in relationship group

Hey i just encountered something weird and i am wondering if anyone else encountered this (before submitting a issue on github)

(using postgres btw)

Imagine you have a:
- model:
User
User
with a one to one relation
UserInformation
UserInformation
->
information
information

- add a datetime column
notify_at
notify_at
to
UserInformation
UserInformation
and cast it as such.
- add
Group::make([DateTimePicker('notify_at')])->relationship('information')
Group::make([DateTimePicker('notify_at')])->relationship('information')


the date will save on submit (When filled), but the state will not be hydrated at all. I found it will hydrate when you either:
- remove the datetime cast.
- add the
->native(false)
->native(false)
to the picker.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

HasOne not saving when using ->relationship() in a Group/Section/Fieldset
FilamentFFilament / ❓┊help
6mo ago
Repeater ->relationship() inside multiple Group ->relationship() in a form issue
FilamentFFilament / ❓┊help
4mo ago
v3 relationship saving not working anymore with group in resource
FilamentFFilament / ❓┊help
3y ago
groupby another relationship column in chart
FilamentFFilament / ❓┊help
2y ago