On Mar 30, 2004, at 12:17 PM, Andrus Adamchik wrote:
>
> On Mar 30, 2004, at 12:12 PM, Bret Gregory wrote:
>
>> There is a note that setting the object to transient doesn't seem
>> right in
>> the CayenneDataObject class at line 199-200. I agree that that
>> doesn't seem
>> right, but also the fact that reading a property/relationship
>> returning a
>> hollow object when the relationship/property doesn't exist doesn't
>> seem
>> right either.
>
> Yes it does. If a source object row has an FK to a related object,
> related object must be there! Otherwise you have a referential
> integrity problem with your DB. Is this related to your earlier
> problem?
>
> Andrus
Ok, there are cases of optional to-one relationships, please post the
relevant part of your DataMap to see if you have one of those.
Andrus
This archive was generated by hypermail 2.0.0 : Tue Mar 30 2004 - 12:21:18 EST