Help! I'm employing a cache strategy which saves Model instances to an in-memory store. When I retrieve these instances from the cache, I add them to my session. All the data is there, but when I try to use a relationship property it returns None.
A test with two objects: cache_obj and fresh_obj, the only difference I see is that one has a unicode string for it's foreign key and the other does not (which is also strange). (Pdb) fresh_obj_map.attrs['profile'].target == cache_obj_map.attrs['profile'] True (Pdb) cache_obj.profile_id '2cedffc2-7d5c-11e3-8cb0-c82a1412a8b6' (Pdb) fresh_obj.profile_id u'2cedffc2-7d5c-11e3-8cb0-c82a1412a8b6' (Pdb) cache_obj.profile (Pdb) fresh_obj.profile <alphaworks.models.profile.Profile object at 0x10215e910> -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
