symfony-cmf/CreateBundle — pull request #61 by digitalkaoz (2013-06-20 15:19:16+00:00)
Title: fixed object vs array serialization for assets

since the javascript code from the `hallo-editor` expects an array for the `assets` (it uses `shift` which is only available for arrays) and an array collection get serialized to an object, the search functionality is currently broken.

This PR fixes this, so that it is ensured it is an array.

**before:**

``` json
{
/cms/content/static/foo : {id: '/cms/content/static/foo', alt:'foo', url: '/foo'},
/cms/content/static/bar : {id: '/cms/content/static/bar', alt:'bar', url: '/bar'}
}
```

**after**

``` json
[
{id: '/cms/content/static/foo', alt:'foo', url: '/foo'},
{id: '/cms/content/static/bar', alt:'bar', url: '/bar'}
]
```