Questions tagged [arraycollection]

The ArrayCollection class is a wrapper class that exposes an Array as a collection in Flex which can be accessed and manipulated. Use this tag for questions related to arraycollection.

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for example, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

Reference

336 questions
-1
votes
1 answer

How can I retrieve data from ArrayCollection (Symfony)?

animals: | id | name | |----|------| | 1 | cat | | 2 | dog | | 3 | frog | category: | id | name | |----|--------| | 1 | green | | 2 | blue | | 3 | orange | animals_category: | animals_id | category_id | |------------|-------------| |…
peace_love
  • 5,582
  • 8
  • 38
  • 100
-1
votes
2 answers

How to sort Object Array Collection by value in PHP

So I have this result from database: object(Illuminate\Support\Collection)#538 (1) { ["items":protected]=> array(3) { [0]=> object(stdClass)#536 (3) { ["col_header"]=> string(7) "other_1" …
Eem Jee
  • 899
  • 1
  • 21
  • 46
-1
votes
1 answer

Remove duplicate values from arraycollection in flex4

This is my arraycollection o = JSON.parse(event.result.toString()); jsonarray = new ArrayCollection(o as Array); in this array i have a duplicate values of product name, so i wants to remove duplicacy.\ my code is here,its not working please let…
sahil garg
  • 21
  • 2
-1
votes
1 answer

Sort ArrayCollection using compareFunction

using Flash Builder 4.6 i want to sort an arrayCollection. the array has 2 properties status, and help_id. I want to sort the array to have all "open" statuses at the top, than all the "read", than "onsite", than "complete", and so on. i made a…
-2
votes
3 answers

Update doctrine entity with ArrayCollection field

I have problem with update entity with relations (one to many, many to one). I trying to add some new element to ArrayCollection when update, but nothing to do. Here is my code of create and add relation: $auctionPhoto = new…
Jacek
  • 33
  • 2
  • 7
-3
votes
2 answers

How can I store data in Array Collection with doctrine (Symfony 4)?

My controller: /** * @Route("/row/{slug}/{connect}/{field}/{productgroup}", name="row", methods={"POST"}) */ public function row($slug, $connect, $field,$productgroup, Request $request) { …
peace_love
  • 5,582
  • 8
  • 38
  • 100
1 2 3
22
23