On Feb 1, 5:24 am, Manlio Perillo <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I still do not fully understand cascade rules, however I want to be sure
> the behaviour below is a feature and not a bug.
>
Did you intend for the B object to be able to not exist? I modified
your code to create a b object as well as obj and the transaction
worked:
obj = A('x')
bobj=B('hi') # I modified your constructor to not take the id as
well
bobj.a=obj
sess.save(obj)
I'm not sure if it is a bug or feature either but perhaps a different
cascade rule will alter the behavior.
-Dennis
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---