【CakePHP2.4】find()で複数のOR条件をANDで結合したいときの書き方。

めも。

$conditions = array(
	$this->alias.'.col1' => 'value_1',
	$this->alias.'.col2' => 'value_2',
	
	'OR' => array(
		array($this->alias.'.col3 LIKE' => '%value_3%'),
		array($this->alias.'.col3 LIKE' => '%value_4%'),
	),
	'AND' => array(
		'OR' => array(
			array($this->alias.'.col4' => 'value5'),
			array($this->alias.'.col5' => 'value6')
		)
	)
);