- or download this
my $persons = $schema->resultset('Person');
my $active_persons = $person->search({ active => 1 });
- or download this
while (my $person = $person->next) {
...;
}
- or download this
my @person_objs = $person->all;
- or download this
$active_persons->search({
writeup_comment.title => 'Foo',
...
prefetch => 'writeup',
});
# gets you all persons with have recieved a comment with the title 'Fo
+o' for one of their writeups, for example
- or download this
my $writeups = $active_persons->search_related('Writeup');