in reply to Re^2: Problems Using Join in DBIx::Class
in thread Problems Using Join in DBIx::Class
I sent this through perltidy, which rendersmy @proc_requests = $schema->resultset( 'TblRequests' )->search({ -or => [ status => 'Offered', status => 'Denied', status => 'Cancelled', status => 'Conditional Offer', ], -and => [ -or => [ sent_email => {'!=', undef }, sent_email => {'!=', '0000-00-00'}, ], ], }, { prefetch => 'p' } );
my @proc_requests = $schema->resultset('TblRequests')->search( { -or => [ status => 'Offered', status => 'Denied', status => 'Cancelled', status => 'Conditional Offer', ], -and => [ -or => [ sent_email => { '!=', undef }, sent_email => { '!=', '0000-00-00' }, ], ], }, { prefetch => 'p' } );
(at least this looks more "logical" to me)my @proc_requests = $schema->resultset('TblRequests')->search( { -or => [ -or => [ status => 'Offered', status => 'Denied', status => 'Cancelled', status => 'Conditional Offer', ], -and => [ sent_email => { '!=', undef }, sent_email => { '!=', '0000-00-00' }, ], ], }, { prefetch => 'p' } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problems Using Join in DBIx::Class
by phildeman (Scribe) on Dec 29, 2017 at 03:11 UTC | |
by poj (Abbot) on Dec 29, 2017 at 08:50 UTC | |
by 1nickt (Canon) on Dec 29, 2017 at 04:26 UTC |