cayasso/oomvc — Issue #18: Make sure that instance level destroy also removes the instance from collection
Author: noctivityinc
Created: 2011-10-30 00:24:59+00:00
State: open

Assuming a space model with an instance of space loaded, if I did this:

space.lines.create('akey',data);

and then later:

space.lines('akey').destroy()

We need to make sure that not only is the "akey" element being deleted from the DB but that it is also removed from the space.lines collection.

Thx,

J