2

How do you save an arraycollection field in an object to a mysql database. I usually would have used a for each item in array collection field then pass a unique key to it so it track it back later, but thats getting cumbersome now. Is there a way to save an arraycollection that also allows easy update of the arraycollection item.

Thanks in advance

Johnny

1
  • Your explanation isn't very clear. Are you trying to have some kind of persistence between Flex and the DB on a particular entity within an ArrayCollection? Commented Jun 2, 2011 at 13:27

1 Answer 1

1

If you woun't update some elements of collection separately, you may store it in one row (values of array separated with ',' in one string). Use blob fields if the string will be long. If you need to update some part in that collection you may tre to derive out that part in separate row. But it's not good practice, so if you want to update something putting each element of collection in a separate field is probably the best solution.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.