Hello,

Here is a small example of my issue (it's Elixir syntax, but I think 
it's not an Elixir specific issue) :
class Rec(Entity):
    collection = ManyToOne('Coll')

class Coll(Entity):
    recs = OneToMany('Rec')

r1 = Rec()
r2 = Rec()
c = Coll(recs=[r1,r2])

at that time len(c.recs) == 2

if I do something like r1.delete(), I would expect len(c.recs) == 1 but 
it stays at 2 until the flush(). Am I missing some parameter on the 
class definitions ?
I've tried some "cascade" parameters but they seem to handle the Recs 
deletion when you delete a Coll.


--~--~---------~--~----~------------~-------~--~----~
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