I have criteria:
object(CDbCriteria)#186 (17) {
["select"]=>
string(1) "*"
["distinct"]=>
bool(false)
["condition"]=>
string(17) "t.type IN (:type)"
["params"]=>
array(1) {
[":type"]=>
string(3) "2,3"
}
["limit"]=>
string(2) "50"
["offset"]=>
int(0)
["order"]=>
string(17) "t.order_date DESC"
["group"]=>
string(0) ""
["join"]=>
string(0) ""
["having"]=>
string(0) ""
["with"]=>
NULL
["alias"]=>
NULL
["together"]=>
NULL
["index"]=>
NULL
["scopes"]=>
NULL
["_e":"CComponent":private]=>
NULL
["_m":"CComponent":private]=>
NULL
}
SQL query I thinks must look like that:
SQL query must be SELECT * FROM `transaction` WHERE type IN (2,3);
$model::model()->findAll($criteria);
But problem is there, that I get records only where type is 2, but not get where is 3, why ?