Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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