Gregg Lind wrote: > One quick follow up. > > re: question 2: If I create a User there, and that user exists in the DB, > won't that cause problems? I ask because this situation seems analogous > to > a "create if not existing" situation.
well sure if your Address implies a particular User that might already exist then yeah you have to try loading it first. or use merge() if you can deterministically generate the primary key (does the same thing basically). --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---