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

Data binding #6

Merged
merged 13 commits into from
May 8, 2023
Merged

Data binding #6

merged 13 commits into from
May 8, 2023

Conversation

andyexeter
Copy link
Member

@andyexeter andyexeter commented Apr 25, 2023

This PR implements the ability to bind data (objects and arrays) to forms.

Keeping as a draft for now as there are still a few more bits to do and then some testing will be required.

Resolves #5

@Virgilio123
Copy link

Can I install the new version with composer ?

@andyexeter
Copy link
Member Author

You can, but I wouldn't recommend it just yet:

composer require palmtree/form:dev-data-binding

Please don't use this in production. It's a development branch that hasn't been fully tested :)

@andyexeter andyexeter marked this pull request as ready for review May 1, 2023 13:28
@andyexeter
Copy link
Member Author

@axoloth @Virgilio123 I believe this is ready for merge now.

Any chance you are able to test this for me?

@andyexeter
Copy link
Member Author

andyexeter commented May 1, 2023

I've changed the implementation here slightly.

You can now pass any object instead of having to implement an interface and (optionally) use a trait, with the data mapping logic being extracted into a service class.

@andyexeter andyexeter merged commit 0c2a1ca into master May 8, 2023
7 checks passed
@andyexeter andyexeter deleted the data-binding branch May 8, 2023 20:51
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.

No way to bind datas ?
2 participants