Identity map does not unmap destroyed objects. Sequel should unmap the destroyed objects like this:
x = SomeModel[1] x.nil? #=> false x.destroy y = SomeModel[1] y.nil? #=> true Instead, it current does this: x = SomeModel[1] x.nil? #=> false x.destroy y = SomeModel[1] y.nil? #=> false y == x #=> true Also, it would be nice if there was a way to skip the identity map on certain fetches, like SomeModel.direct(id). On a side note, Sequel::Model should have #deleted? and #destroyed? methods so that we can check if an object has been deleted or destroyed. -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
