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

Fix behaviour for toArray and toJson methods #21

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

WendellAdriel
Copy link
Owner

This PR fixes the issue that currently when you set a custom column name to a model, when converting it to array or json the array/json uses the DB columns names instead of the properties defined in the Model. With this PR, even when a field has a custom column name set, the array/json will use the model property name instead.

@WendellAdriel WendellAdriel merged commit da54a8c into main Aug 30, 2023
8 checks passed
@WendellAdriel WendellAdriel deleted the to-array-override branch August 30, 2023 19:19
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

1 participant