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

Chris Visser chris at cwmmarketing.co.za
Mon Feb 22 16:25:34 EST 2016


Hi

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

Hope this helps.

Regards

Chris


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: 22 February 2016 15:17
To: Chris Visser
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Problem with updating a transient object when
adding a ptr in a to-many relationship

Hi Chris,

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

> In the source code below I always get the exception thrown.

I don't see anything wrong with your code off the top of my head. Which
database are you using? Also, exactly which line in that transaction throws
the exception?

Boris



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7442 / Virus Database: 4537/11680 - Release Date: 02/22/16




More information about the odb-users mailing list