Prefetched objects aren't used (2.0.4)

From: Donald Vrakking (d.vrakkin..si-solutions.nl)
Date: Wed Jul 08 2009 - 05:43:30 EDT

  • Next message: Andrus Adamchik: "Re: Prefetched objects aren't used (2.0.4)"

    Hi,

    I have two objects A and B which have an m:1 relation (it's used as a
    1:1). I created a SelectQuery to get instances of A and added a
    prefetch to B. After executing the query, A only has a toOneFault for
    B, so when I access B it will execute another (relationship)query on
    the database.

    It doesn't matter if I use a DISJOINT or a JOINT prefetch, the result
    is the same; all the necessary queries are executed and the datarows
    for B are put in the cache, but the property on A isn't updated with
    the prefetched B. Does anybody know how to explain (and fix ;-)) this?

    Thanx,

    Donald Vrakking



    This archive was generated by hypermail 2.0.0 : Wed Jul 08 2009 - 15:23:33 EDT