Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cast helper methods #56

Merged
merged 6 commits into from
Sep 6, 2023
Merged

Add cast helper methods #56

merged 6 commits into from
Sep 6, 2023

Conversation

WendellAdriel
Copy link
Owner

As discussed in #45
There are some issues with casting the explicitly declared public properties in the Lift Models.

Some workaround options were discussed:

1 - Updating all properties to be Value Objects

2 - Creating helper methods for casting the attributes when setting them

Option 1 had more issues since it would add complexity and lose the property typing, so this PR implements the 2nd option by creating new helper methods described here: WendellAdriel/laravel-lift-docs#1

@WendellAdriel WendellAdriel merged commit dd3a00f into main Sep 6, 2023
8 checks passed
@WendellAdriel WendellAdriel deleted the attribute-cast-workaround branch September 6, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants