-
-
Notifications
You must be signed in to change notification settings - Fork 956
Open
Description
API Platform version(s) affected: 4.2.12
Description
If you define casts via the Laravel method it isn't caught up by API Platform. Only $casts works.
How to reproduce
Try to create a model and define casts via the casts() method, not the $casts property
Possible Solution
Might need to call the initializeHasAttributes method
Additional Context
Migrated from api-platform/api-platform#2962
Metadata
Metadata
Assignees
Labels
No labels