Created
October 5, 2010 18:10
-
-
Save thiagosf/612028 to your computer and use it in GitHub Desktop.
Múltiplas condições dentro de uma consulta CakePHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$conditions = array( | |
'OR' => array( | |
array('Company.name' => 'Future Holdings'), | |
array('Company.name' => 'Steel Mega Works') | |
), | |
'AND' => array( | |
array( | |
'OR'=>array( | |
array('Company.status' => 'active'), | |
'NOT'=>array( | |
array('Company.status'=> array('inactive', 'suspended')) | |
) | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment