We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14162
    • 67 Posts
    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'
      • 14162
      • 67 Posts
      Silly me. Should have tried exactly what I've written. This works perfectly:

      $query->where( 
        array (        
                   'fieldname:NOT LIKE' => '%value%',
                  
            )
        );
      }