Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Resolve default cast from parent classes #189

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented Apr 10, 2021

Calling getAttributes on a class returns only attributes applied to that class and not those applied to the parent classes, so we need to cycle through the entire hierarchy to load default casts from parent classes.

@brendt brendt merged commit ae90b9f into spatie:master Apr 14, 2021
@brendt
Copy link
Contributor

brendt commented Apr 14, 2021

Thanks!

@brendt
Copy link
Contributor

brendt commented Apr 14, 2021

Tagged as 3.0.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants