If I had an object
DS.defineResource({
name : 'parent',
relations : {
hasMany : {
child : {
localField : 'children',
foreignKey : 'parentId'
}
}
}
})
DS.bindOne('parent', 1, $scope)
and I make a change to an attribute on a child parent.children[4].name='joey'
, how can I include that change as part of a save
:
$scope.parent.DSSave();
How can I do that?