framework/db/ar/CActiveRecord.php
public function find($condition='',$params=array())
	{
		Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord');
		$criteria=$this->getCommandBuilder()->createCriteria($condition,$params);
		return $this->query($criteria);
	}
public function find($condition='',$params=array())
	{
		Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord');
		$criteria=$this->getCommandBuilder()->createCriteria($condition,$params);
		return $this->query($criteria);
	}
public function find ( $ condition = '' , $ params = array ( ) ) { Yii :: trace ( get_class ( $ this ) . '.find()' , 'system.db.ar.CActiveRecord' ) ; $ criteria = $ this -> getCommandBuilder ( ) -> createCriteria ( $ condition , $ params ) ; return $ this -> query ( $ criteria ) ; }
Finds a single active record with the specified condition.
@param mixed $condition query condition or criteria.
If a string, it is treated as query condition (the WHERE clause);
If an array, it is treated as the initial values for constructing a {@link CDbCriteria} object;
Otherwise, it should be an instance of {@link CDbCriteria}.
@param array $params parameters to be bound to an SQL statement.
This is only used when the first parameter is a string (query condition).
In other cases, please use {@link CDbCriteria::params} to set parameters.
@return static|null the record found. Null if no record is found.
Finds a single active record with the specified condition .