For example:

SELECT sid FROM {webform_submission} table0 WHERE table0.webform_id IN ('webform_one', 'webform_two');

Comments

imclean created an issue. See original summary.

imclean’s picture

Status: Active » Needs review
StatusFileSize
new2.61 KB

  • imclean committed 6512f68 on 8.x-1.x
    Issue #3227785 by imclean: Support conditions with arrays
    
imclean’s picture

Status: Needs review » Fixed

Examples.

$query = \Drupal::service('webform_query');
$query->addCondition('event', 1)    
      ->setWebform('event_registration')
      ->addCondition('uid', [1, 5, 7], 'IN', 'webform_submission');
$results = $query->processQuery()->fetchCol();
$query = \Drupal::service('webform_query');
$query->addCondition('event', 1)    
      ->setWebform('event_registration')
      ->addCondition('age', [18, 19, 20], 'IN', 'webform_submission_data');
$results = $query->processQuery()->fetchCol();

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.