On Aug 13, 6:42 pm, Stou Sandalski <[EMAIL PROTECTED]> wrote:
> Oh ok, it always bothered me that I was using instance.flush() so I
> guess it's good that I was forced to stop doing it.
>
> Could I use objectstore.flush() ? I am using Pylons and flushing the
> session is a fairly long line.

Yes, that is exactly how to do it. (You can also do
objectstore.flush([instance]) to flush just a single instance, like
instance.flush().)

> Also what happened to the clear() method for instance arrays? For a
> 'has_many' field, if I wanted to remove all entries from the object I
> used to be able to do 'clear()' but now that's missing too.

I'm not familiar with .clear(). Did this basically empty the table?

Best of luck.

~jon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to