|
|
|
Forum Member
      
Group: Forum Members
Last Login: 2012-01-13 15:57:45
Posts: 48,
Visits: 1 645
|
|
Hello!
When saving to a database, I got this error message:
"When storing link ObjectComposition.CoReDetailObject, the link reffered to an internal object id. The object at the other end must be stored first. Please mark the link as a constrained link in the OR-mapping."
Saving is done as EcoSpace.UpdateDatabase(). This is the first time when I see this message, though the database already contains a few hundred thousand objects. Any ideas?
Best regards,
Dmitry
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 2012-01-13 15:57:45
Posts: 48,
Visits: 1 645
|
|
I found what was causing the problem: I was linking a deleted object. Strange enough, in most cases it would allow to save, but a database would then contain phantom records in association tables, which in turn would cause ObjectNullReference exception on trying to read objects with these phantom links.
Take care,
Dmitry
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-11-30 12:17:13
Posts: 1 230,
Visits: 1 382
|
|
Could you please file a bug report on this? It should throw an exception immediately when you try to create an association to a deleted object.
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 2012-01-13 15:57:45
Posts: 48,
Visits: 1 645
|
|
Submitted as http://magpie.no-ip.com/mantis/view.php?id=670
Best regards,
Dmitry
|
|
|
|