Skip to content

Many-to-many sync: always work with arrays #1363

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

Merged
merged 2 commits into from
Oct 20, 2012

Conversation

franzliedke
Copy link
Contributor

When fetching an array of values from input, the value might be null if nothing was selected (instead of an empty array).

As this feels like a somewhat common use-case, this type-casting should be handled in the sync() method, I'd say.

http://forums.laravel.com/viewtopic.php?id=3057

jasonlewis added a commit that referenced this pull request Oct 20, 2012
Many-to-many sync: always work with arrays
@jasonlewis jasonlewis merged commit 73d4b0b into laravel:develop Oct 20, 2012
@jasonlewis
Copy link
Contributor

Cheers @franzliedke.

zoe-edwards pushed a commit to zoe-edwards/laravel that referenced this pull request Oct 14, 2013
Ensure that Request reads JSON from php server
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.

2 participants