Skip to content

Cannot set value on a nested has-many collection #40

@jamesarosen

Description

@jamesarosen

Example:

Klass = Em.Resource.define({
  schema: {
    children: {
      type: Em.ResourceCollection,
      itemType:Object,
      nested: true
    }
  }
});

k = Klass.create({});
k.set('children', [ { name: 'Harold' } ]);
k.get('children'); // undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions