thanks, i've updated the docs

On Dec 3, 2007 9:35 PM, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
>
>
> On Dec 3, 2007, at 4:32 PM, Brendan Arnold wrote:
>
> >
> > hi there,
> >
> > i'm trying to delete an object from my database using the orm.
> > according to 'sqlalchemy for people in a hurry docs 0.4' there is a
> > delete() method on orm objects, so the following is possible,
> >
> > sample.comments[0].delete()
> > del sample.comment[0]
> >
> > and this will delete the comment from the database. i don't want to
> > enable delete-orphan as the above is just an example.
> >
> > i'm using sqlalchemy version 0.4.1 and python 2.4.4
> >
>
> theres no delete() on instances, even if youre using the
> "Session.mapper" feature which I dont like very much, and the pylons
> document should be updated if it says there is.  delete() is on the
> Session, i.e. session.delete(someinstance).
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to