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

Added $defaultValues array to Transformer #2

Closed
wants to merge 2 commits into from

Conversation

dgallinari
Copy link

With a defaultValues array, it's now possible to define default values for attributes in Transformer.

With a defaultValues array, it's now possible to define default values for attributes in Transformer.
Included an usage example for $defaultValues property.
@deefour
Copy link
Owner

deefour commented Oct 21, 2016

Thank you for this! This is an awesome addition.

I fleshed the implementation of this out a bit more and added tests.

I am also thinking of adding support to toggle how null values are treated on a per-transformer basis in addition to the all-or-nothing behavior that's now in place.

@deefour deefour closed this Oct 21, 2016
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