[odb-users] Problem with updating a transient object when adding a ptr in a to-many relationship

Boris Kolpackov boris at codesynthesis.com
Tue Feb 23 09:21:42 EST 2016


Hi Chris,

Chris Visser <chris at cwmmarketing.co.za> writes:

> I am using SQL Server, and the line giving the problem is db->update(John);

That would mean the object that 'John' points to is not persistent, for
some reason. Try to print the object id of object(s) that are in John's
vector and see if they are actually in the database.

If that doesn't shed any light, then I will need a small but complete
test case that I can use to reproduce the problem.

Boris



More information about the odb-users mailing list