We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Developing with xPDO
Search
xPDO NOT LIKE condition
67 Posts
jimbob72
Reply #1,
14 years, 10 months ago
Is there any way of using a 'NOT LIKE' condition in xPDO?
I have a field with an array of values and I'd like to say: WHERE 'field:NOT LIKE' => 'value'
67 Posts
jimbob72
Reply #2,
14 years, 10 months ago
Silly me. Should have tried exactly what I've written. This works perfectly:
$query->where( array ( 'fieldname:NOT LIKE' => '%value%', ) ); }