[Catalyst] Introductions all around
Andy Grundman
andy at hybridized.org
Thu Jul 7 06:24:56 CEST 2005
Joshua J. Kugler wrote:
> Ask for order 42.
> Retrieve all information about that order (probably one row in Orders)
> Then, retrieve all data about all the order items for that order (i.e.
> retrieve all OrderItems where OrderID = 42).
> Then, what is returned is (probably) a hash, each entry is name/value,
> then there is an Items key which is an array of hashes, each hash being
> a single with OrderItem. Does that makes sense? Does anything like
> that exist? Or is that exactly what "prefetch" is?
Currently, prefetch only goes 1 level down, it will load as many has_a
or might_have columns of the current object as you ask for. Matt's got
plans to add support for going farther than that though, so stay tuned. :)
-Andy
More information about the Catalyst
mailing list