Hey Dalius, > contact.client=Session.query(ArkClient).filter(ArkClient.client=='clien > tName').first() > > I'd expect something like: > contact.client=Session.query(ArkClient).filter(ArkClient.client.name==' > clientName').first() > > I just find it very strange how you use SQLAlchemy: Table, class and > mapper mixed into one class (ArkContact). While ArkClient mapper seems > to be correct. As well it looks very strange that ArkClient has > backref and you define client in ArkContact again and in addition with > backref. It is enough to define this relation in one mapper.
Yes, apologies - I've changed from declarative to the more 'traditional' [separate table / class / mapper] route since my first post, I should have clarified that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---