On Feb 23, 2004, at 1:33 AM, Joel Boehland wrote:
> I've just started playing around with SQLObject and have a question
> about
> the use of SQLObject.destroySelf. It doesn't take a
> connection/transaction
> as a parameter, so I can't see how to make it do multiple
> destroySelf's from
> within a transaction. (i.e. destroy a list of User objects all in the
> same transaction)
> Am I missing something, or is this something that needs to be added?
An object is already associated with a transaction at that point --
when you pass the transaction into the constructor (or .select or
whatever), you get an object that is bound to that transaction, so when
you delete it you delete it inside the transaction.
--
Ian Bicking | ia...@co... | http://blog.ianbicking.org
|