"OR" SQL Condition in Usermodel

R

ragtek

Guest
i haven't found a way, to include a OR condition into the model:(
Is it possible to get all users matching this pattern:

where username = "FOO"
OR
email = "BAZ"
 

Mike

XenForo developer
Staff member
You'll likely have to write it manually. You may get better performance by using 2 queries (or a union), due to index usage.
 
Top