Ugh I never even considered that you'd be mucking with prototypes
live in EM while trying to use them in the same model. I cache those
at model load, which would explain what Chuck is seeing. However, it
has nothing to do w/ EOF, because I don't use EOF for almost anything
(rather EM has its own implementation of the EOF model API's). But
that's a good guess ... I've also never really tested changing
prototypes where you have different attributes in different sets of
prototypes. This seems a little strange to me, but should not really
be WRONG (just suspicious). Any time this scenario has occurred in
Wonder it's because of a Wonder bug (i.e. MySQL doesn't have a
prototype that FrontBase has, or whatever).
ms
On Jul 10, 2007, at 7:09 PM, Chuck Hill wrote:
> Are you creating new prototypes at the same time you are assigning
> them to attributes? Last time I did this, which was a while
> ago... I got much the same. I ended up adding all the prototypes
> I needed and then restarting Eclipse.
>
> I suspect it is related to how EOF handles prototypes internally
> with caching, but that is just a guess.
>
> Chuck
>
>
> On Jul 10, 2007, at 3:59 PM, Lachlan Scott wrote:
>
>> I'm encountering some unexpected behaviour when prototyping in Entity
>> Modeler.
>>
>> Using a prototype entity (named EOJDBCPrototypes) and associating
>> it as
>> the Prototype in the active database config, I have defined a
>> number of
>> prototypes for attributes.
>>
>> But when creating new attributes, the Prototype pulldown menu
>> fails to
>> offer a full list of all the prototypes I've defined, and suspciously
>> offers the name of a previously defined prototype. After
>> indeterminate
>> actions (ie. I don't know what I do, if anything, to get it to
>> work) the
>> prototypes may become available as expected.
>>
>> Can anyone suggest what I may be doing wrong here to get this
>> behaviour,
>> or if I'm encountering a known bug which can be worked around?
>>
>>
>> Many thanks
>>
>>
>>
>> Lachlan
>>
>> --
>> Lachlan Scott, Senior Bloke
>> Runthered (http://www.runthered.com)
>> Wellington, New Zealand
>> +64 (0)21 824 244
>>
>
> --
>
> Practical WebObjects - for developers who want to increase their
> overall knowledge of WebObjects or who are trying to solve specific
> problems.
> http://www.global-village.net/products/practical_webobjects
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Tue Jul 10 2007 - 19:28:19 EDT