Please help. Something stumbled with the understanding of arrays. There is a request:
$q = $modx->newQuery('modContext'); $where = array( 'modContext.key:in' => array('web', 'mgr'), 'cs.value:!=' => NULL, 'cs.value:!=' => '', ); $q->select(array( 'modContext.key', 'cs.key as setting_key', 'cs.value' )); $q->innerJoin('modContextSetting', 'cs', 'cs.context_key = modContext.key'); $q->where($where); where is assigned at a time. How to break this action into several. Type:
$where['modContext.key:in'] => 'web'; $where['modContext.key:in'] => 'mgr'; $where['cs.value:!='] => NULL; $where['cs.value:!='] => ''; Help me please.