my $book = $book_rs->search({
title => 'A book title',
-}, { rows => 1 })->single;
+}, { rows => 1 })->next;
my @books = $book_rs->search({
author => $author_id,
<div class="slide">
<h1>search_related</h1>
- <pre>*get example from work*</pre>
+<pre>my @test_rs = ($schema->resultset('User')->search({'me.userid' => 'marial'})
+ ->related_resultset('access')
+ ->related_resultset('mgmt')
+ ->related_resultset('orders')->search({'orders.reporttype' => 0})
+ ->related_resultset('shops')->search({'shops.status' => 'Completed', 'shops.datecompleted' => {-between => ['2009-10-01','2009-10-08']}})
+ ->related_resultset('rpt_score')->get_column('raw_scores')->first);
+</pre>
+ </div>
+
+ <div class="slide">
+ <h1>related_resultset</h1>
+<pre>my @screens = $user->roles
+ ->related_resultset('role_permissions')
+ ->related_resultset('permission')
+ ->related_resultset('permission_screens')
+ ->related_resultset('screen')
+ ->search(undef, { distinct => 1 })->all;</pre>
</div>
<div class="slide">