Skip to main content

Timeline for SQL queries with AND/OR conditions

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Jun 15, 2016 at 5:23 comment added davem Thanks. That works ( I thought I'd already tried that!) I ended up coding $query->condition('classes.description','Photographer'); $query->condition($query->orConditionGroup() ->condition('classoptions.description', $photographer) ->condition('classoptions.description', 'Not assigned')); You can also use ->where('sql snippet', args) to perform the SQL conditions in full, although this seem to go against the grain of most D8 SQL methods.
Jun 14, 2016 at 19:32 history answered Maouna CC BY-SA 3.0