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

Arrays beginning with index 1 are parsed as an object #375

Closed
turbo-ele opened this issue Apr 9, 2014 · 2 comments
Closed

Arrays beginning with index 1 are parsed as an object #375

turbo-ele opened this issue Apr 9, 2014 · 2 comments

Comments

@turbo-ele
Copy link

I'm having the following problem:
when i'm manipulating an entities relation, let's say a users phones, it sometimes appears that the resulting ArrayCollection starts with index 1 (deleting the first entry). The serializer then passes the array as an object with property 1.
Is there any way to bypass this and pass it as an array? Any help is appreciated!

@cincas
Copy link

cincas commented Apr 28, 2014

this issue also happened when we're using Gedmo/Sortable annotation.

@goetas
Copy link
Collaborator

goetas commented Apr 21, 2017

fixed in schmittjoh/serializer#728

@goetas goetas closed this as completed Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants