We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE3: Filtering models with "in (select"

Development and Programming

adlix's avatar
adlix
7 posts
9 years ago
adlix's avatar adlix

Hi, I have to create a Member having a email address in an additional table/Model Person.

Now I want to filter all Person with an email address not in Member with something like

Person->filter('email', 'NOT IN', '(select email from exp_member)')

I know this doesn’t work, but is there an alternative way? I can’t do it with a loop there are to much records.

Do I really have to build an array of email addresses for all 5000 members to commit it to the filter?

Thanks

Matthias

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.