Many thanks Ken, that was it !
I've added all back-pointing relationships (no need to generate attributes
for them) and prefetch works, even on the parent entity (A in my example),
that's a great improvement !

Cheers,

Alex


2013/12/9 Alexis Tual <[email protected]>

> Yes it's referencing A in my example. Do I have to reference all
> subentities of A ? I'll try tomorrow at the office.
>
> Thanks
>
> Alex
>
>
> 2013/12/9 Ken Anderson <[email protected]>
>
>> Is the back pointing relationship referencing the superclass?  You need
>> to create multiple relationships, specifically naming all the subclasses.
>>
>> On Dec 9, 2013, at 5:41 PM, Alexis Tual <[email protected]> wrote:
>>
>> Hi Ken,
>>
>> thanks for your suggestion, but I already have the backpointing
>> relationship...
>> I'll try to do a simple projet to isolate the issue.
>>
>> Alex
>>
>>
>>
>> 2013/12/6 Ken Anderson <[email protected]>
>>
>>> In ancient times… (and I mean like, 15 years ago)
>>>
>>> A back pointing relationship from the subclasses of B to the abstract A
>>> (where the to-many relationship ‘toB' is) was necessary for all the
>>> plumbing to hook things up when the EOs came back from the prefetch.
>>>
>>> Ken
>>>
>>> On Dec 5, 2013, at 3:08 PM, Alexis Tual <[email protected]> wrote:
>>>
>>> > Hi,
>>> >
>>> > I have 2 single table hierarchies :
>>> > - B1 inherits from B
>>> > - A1 inherits from A (abstract), A1 has a to-many relationship to B,
>>> let's call it toBs
>>> >
>>> > is it possible to prefetch this relationship ?
>>> >
>>> > We can't manage to get it work, I'll past the obscure exception
>>> tomorrow but can anyone confirm that this kind of prefetch works with EOF ?
>>> > I've also tried ERXBatchFetchUtilities which seems promising "This
>>> works much like prefetching with fetch specifications, however this
>>> implementation is able to work around inheritance where prefetching fail",
>>> but no luck :/
>>> >
>>> > Thanks
>>> >
>>> > Alex
>>> >
>>> > _______________________________________________
>>> > Do not post admin requests to the list. They will be ignored.
>>> > Webobjects-dev mailing list      ([email protected])
>>> > Help/Unsubscribe/Update your Subscription:
>>> >
>>> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to