Anthony Gladdish wrote:

Any ideas or suggestions from anyone would be great.
Since hashref are ands already, simplyfing it is what I'd do

my $orders_current = $schema->resultset('Order')->search(
       {  -or => [ "module_access.expires" => { ">", DateTime->now() },
                   "scheme_access.expires" => { ">", DateTime->now() },
                 ],
"me.person" => $self->id(), }, {
           distinct => 1,
           join => ['module_access','scheme_access'],
       }
   );



_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to