yiisoft/yii — pull request #1204 by resurtm (2012-08-10 19:07:18+00:00)
Title: Fixes #1183: added CDbCommand::addWhere()

Fixes #1183.

Added CDbCommand::addWhere() which appends condition to the WHERE part of the query, in contrary of CDbCommand::where() which replaces it.

Sample:

```php
db->createCommand()
->select()
->from('{{product}}')
->addWhere('price>:param1', array(':param1'=>150))
->addWhere('price<:param2', array(':param2'=>210))
->queryAll();
```