Using the REST Adapter
, it is possible to have embedded objects by doing:
App.Adapter.map('App.User', {
properties : {embedded: 'always'},
});
How do I declare embedded objects using a FIXTURE
? I have tried specifying this in the model:
App.User = DS.Model.extend({
properties : DS.belongsTo('App.UserProperties', { embedded : true })
});
But this is not working. Is it possible to have embedded objects using FIXTURES
? My FIXTURE
looks like:
App.User.FIXTURES = [
{
id: 'id1',
type: 'user',
properties : {
name: 'Max Smith',
email: '[email protected]' }
},
];