The answer is stated in your documentation model()- this is a class level method, and it:
Returns the old model AR. AR. (- .)
, : $model=CActiveRecord::model('Project');, $model CActiveRecord, :
$allModels = $model->findAll();
$someModel = $model->findByPk('pkValue');
$model->deleteAll();
:
: ( )
, . , , ..... , , , , , . $class:: model() → ().