Re: Strange error message
Camille Troillard <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Message-ID | <[email protected]> |
Hi Jonathan,
On Tuesday, Oct 8, 2002, at 19:33 Europe/Paris, Jonathan Rochkind wrote:
> I know you said there wasn't an inheritance relationship, but that
> really sounds like an inheritance thing. Definitely make sure to
> double check that there is no inheritance set in the EOModel.
> Sometimes one can set it accidentally.
Actually I said that the classes weren't related (in terms of
inheritance).
They relationship can be illustrated like this:
RootClass ----> EntityA
----> EntityB
You can't cast A in B, but they have the same root.
Apart from that, I think I found the real problem in my model:
1. fetch an object with PK value of 1000 (for example).
2. fetch another one in another entity but having the same PK (1000).
---> error the new object is not of the correct type !!!
I hope this can help anyone to give me suggestions.
Best Regards,
Camille
> At 07:18 PM 10/8/2002 +0200, you wrote:
>> Hi Anjo,
>>
>> First of all, thank you for the help.
>>
>>
>> On Tuesday, Oct 8, 2002, at 18:51 Europe/Paris, Anjo Krank wrote:
>>
>>> This seems like another case of the problem you had with your PKs
>>> for the reference entities - for which I also have no explanation?
>>
>> I have more infos about my problem:
>> Here are the steps I did to reproduce something "weird".
>>
>>
>> 1. Create an "ODAgency" object.
>>
>> The object has been correctly created in the database (ID: 1000004).
>>
>>
>> 2. Fetch the "ODAgency" objects.
>>
>> Only 2 objects, there should be 3.
>>
>> A. I don't see the object I just inserted (though it is in
>> the DB).
>> B. The first one in an ODAgency, the second one is ... a
>> ODAdvertiser !!!!
>> With ID, guess what ??? ID: 1000004 (same as the newly
>> created advertiser).
>>
>>
>> The thing is that is seems that EOF gets confused with PK.
>> If two entities raws have the same PK, then I have a problem.
>> But I can't tell why ...
>>
>>
>>> Can you post that model somewhere?
>>
>> For reason you understand, I'll post you the model privately.
>> If someone is willing to help me no problem, as far as I know to who
>> I post the model, then it's ok.
>>
>> Thanks again,
>> Camille
>>
>> _______________________________________________
>> EOF mailing list
>> [email protected]
>> http://www.omnigroup.com/mailman/listinfo/eof
>