findByAttributes Example

Ninad picture Ninad · Jun 3, 2013 · Viewed 31.5k times · Source

Explanation for the use of $condition and $param in findByAttributes in Yii

In most case, this is how I use findByAttributes

Person::model()->findByAttributes(array('first_name'=>$firstName,'last_name'=>$lastName));

Answer

ineersa picture ineersa · Jun 3, 2013