1
Ember的RESTAdapter預計JSON響應的組織方式與L4 Eloquent的默認集合有點不同。Laravel 4 Collections和Ember-DATA JSON
從灰燼指南:
{
"post": {
"id": 1,
"title": "Rails is omakase",
"comment_ids": [1, 2, 3]
},
"comments": [{
"id": 1,
"body": "But is it _lightweight_ omakase?"
},
{
"id": 2,
"body": "I for one welcome our new omakase overlords"
},
{
"id": 3,
"body": "Put me on the fast track to a delicious dinner"
}]
}
有沒有辦法讓灰燼映射到L4收藏?