bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GDL2]setting relationship properties in EOEntity doesn't work


From: David Ayers
Subject: Re: [GDL2]setting relationship properties in EOEntity doesn't work
Date: Mon, 05 May 2003 19:26:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Hello Dirk,

Dirk Lattermann wrote:

don't know if this is a bug or if I'm missing something:

It's a bug :-) ...

I had fixed a similar problem with attributes before, and I don't know why I didn't check for relationships at the time. The problem is that GDL2 keeps a cache of _attributesByName and _relationshipsByName, and they were originally only handled for loaded models. I've applied the same fix to addRelationship: as I've had already done for addAttribute: before.

The _flag.relationshipIsLazy is used when a model is loaded from the filesystem rather than created programatically. The processing in relationships/attributes converts property list representations to the actual model objects.

Fixed in CVS.
Thanks for reporting!

Cheers,
Dave






reply via email to

[Prev in Thread] Current Thread [Next in Thread]