Oleg Broytmann a écrit :
I want to delete (or select) all 'Order's without 'OrderLines' using sqlobject (and no direct sql). It's possible ?

   for order in Order.select():
      if not order.lines:
         order.destroySelf()

Oleg.
hum... so easy...

Thanks Oleg
François


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to