Created
February 13, 2013 04:48
-
-
Save rjattrill/4942377 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $lr = $dao->schema->join(qw/Parent grandparent/)->select(-where => {active => 1}); | |
foreach my $p (@$lr) { | |
$p->expand('child', -where => {active => 1}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will filter Parent table by PARENT.ACTIVE = 1 and then expand CHILD table where CHILD.ACTIVE = 1