I'm trying to create an embedded mapping as described in the docs. However I can't seem to get it to work. I'm struggling to get the instance of my adapter so I can run the map()
function. Here's what I have so far
var App = Ember.Application.create({
LOG_ACTIVE_GENERATION: true,
LOG_VIEW_LOOKUPS: true,
LOG_TRANSITIONS: true,
modulePrefix: 'appkit', // TODO: loaded via config
Resolver: Resolver,
Router: Ember.Router.extend({
router: router
}),
Store: DS.Store.extend({
adapter: adapter
})
});
//App.Store.adapter.map('transaction', {
// 'entries': {embedded: 'always'}
//});
What's the correct code for the actual mapping? (entry and transaction are two models).
map()
... – Jeremy Green