On 25/11/2009, at 12:17 AM, Lawson, Ben wrote:

> Perhaps it's inheritance?
> 
> The name and templateId keys belong to the CBTemplate class. We are using 
> single-table inheritance to distinguish between several types of templates 
> (pages, components...). The fetch is for page templates, and the sort is 
> based on their name key.
> 
> At the moment, it looks like simplifying the query / sort to have the 
> database do both on the fetch has solved it, but I'm still not sure why the 
> previous technique was causing a problem.

So perhaps it is being fetched but is failing the restricting qualifier.
er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern=\\w+
er.extensions.ERXDatabaseContextDelegate.logTolerantEntityNotAvailable=false

> Thanks for the help,
> -Ben
> 
> On Nov 24, 2009, at 12:13 PM, David Avendasora wrote:
> 
>> 
>> On Nov 24, 2009, at 4:25 AM, Anjo Krank wrote:
>> 
>>>> com.chello.dbkit.eo.CBPageTemplate found with globalID: <PageTemplate: 
>>>> [templateId: '1011'] >
>>> 
>>> vs:
>>> 
>>>>     at com.chello.dbkit.eo._CBTemplate.name(Unknown Source)
>>> 
>>> Can this be an inheritance thing?
>> 
>> This is my guess as well. What's the difference between a CBTemplate and a 
>> CBPageTemplate? Are you fetching one and trying to display the other?
>> 
>> Dave
>> 
>> 
>> 
>>> Also:
>>> 
>>>>>> . The problem
>>>>>> is that occasionally the sorting trips up
>>>>>> ERXDatabaseContextDelegate.databaseContextFailedToFetchObject when
>>>>>> faulting an element in the array (shouldn't this already have
>>>>>> happened when building the NSArray from objectsForEntityNamed?).
>>> 
>>> If you have CCR, someone else could have invalidated the object in the 
>>> meantime.
>>> 
>>> The DBC actually *does* a fetch, so it stands to reason that actually 
>>> nothing was returned... maybe you can turn on SQL logging after your fetch 
>>> and before the sort call?
>>> 
>>> Cheers, Anjo
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>>> 
>>> This email sent to [email protected]
>>> 
>>> 
>> 
>> David Avendasora
>> Senior Software Engineer
>> K12, Inc.
>> 
>> *****
>> WebObjects Documentation Wiki : 
>> http://wiki.objectstyle.org/confluence/display/WO/
>> *****
>> WebObjects API: 
>> http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
>> *****
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/blawson%40chellomedia.com
>> 
>> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com
> 
> This email sent to [email protected]

with regards,
--

Lachlan Deck



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to