Skip to content

Record received by $find should be bound to collection if possible #235

@smashercosmo

Description

@smashercosmo

Ok, here is the case:

var collection = ItemModel.$collection();
collection.$refresh();

var item = collection.$find(1);
item.$destroy();

I expect that item record, received by $find is automatically bound to collection, so calling $destroy on the record will remove this item from collection. Are my expectations wrong? It seems to me quite logical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions