📜  drupal 8 数据库查询或条件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:04.001000             🧑  作者: Mango

代码示例1
$orGroup = $query->orConditionGroup()
  ->condition('promoted', 1)
  ->condition('uid', [2,4,7,22], 'IN');
  
// Add the group to the query.
$query->condition($orGroup);