<div>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">To give a little detail, I'm grabbing lots of related info from a DB all in one query using DBIx::Class. I am passing the object directly to the stash for processing in TT so I don't have to iterate through all that data, pick out the pieces, and store seemingly redundant information. This works very well when I know the layout of the data. In TT, I simply reference stashvar.relationship...field_name.</span></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"> </span></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">However, there are times when I'm unsure when I’ll have to iterate over some children in one of the relationships.<span style="mso-spacerun: yes"> </span>Meaning the tree of the data could look like</span></p>
<ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Stashvar</span></div></li>
<ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Relationship1</span></div></li>
<ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Relationship2-row1</span></div>
</li>
<ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Field</span></div></li></ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Relationship2-row2</span></div>
</li>
<ul>
<li>
<div style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Field</span><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"> </span></div>
</li></ul></ul></ul></ul>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">I know various ways to view the source of the stash (Catalyst debug page on error/die, examining the array I pass to the stash in Perl debugger, using Template::Plugin::Stash), but all these seem to print out the ENTIRE DBIC object in Perl. This is easily 1000’s of lines because it includes stuff I don’t care about, like all the DBIx class info for all of my tables.<span style="mso-spacerun: yes"> </span>Is there a way to view the stash as it can be accessed from TT, like the tree above?</span></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"></span> </p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Thanks in advance!</span></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'">Chris</span></p></div>