From: Rob Kinyon Date: Fri, 6 Mar 2009 21:18:09 +0000 (+0000) Subject: Added a little more verbiage to explain how collapsing from HRI-form should happen X-Git-Tag: v0.08100~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fec7084ae1d5c6c19987bd8e7977e32fd0ae9584;p=dbsrgits%2FDBIx-Class.git Added a little more verbiage to explain how collapsing from HRI-form should happen --- diff --git a/t/prefetch/multiple_hasmany.t b/t/prefetch/multiple_hasmany.t index 9f858fb..cee298a 100644 --- a/t/prefetch/multiple_hasmany.t +++ b/t/prefetch/multiple_hasmany.t @@ -164,7 +164,9 @@ it is massaged to look something like: t3 => { col1 => 5, col2 => 6 }, }; At this point, find the stuff that's different is easy enough to do and slotting -things into the right spot is, likewise, pretty straightforward. +things into the right spot is, likewise, pretty straightforward. Instead of +storing things in a AoH, store them in a HoH keyed on the PKs of the the table, +then convert to an AoH after all collapsing is done. This implies that the collapse attribute can probably disappear or, at the least, be turned into a boolean (which is how it's used in every other place).