Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $consents = $consentsTable->find('all')->where([
- 'Consents.is_accepted' => 0,
- 'Consents.requested_at IS NULL',
- 'Consents.consent_type' => 'use_by_jev'
- ])
- ->contain(['Prospects'], function( Query $qmail )
- {
- return $qmail
- -> where (['Prospects.email IS NOT NULL', 'Prospects.email !=' => ''] );
- }
- );
- ->page($page, 100)
- ->order('Consents.id', 'DESC');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement