Exception thrown because Yii thinks a method name is a property???

I’m getting the following exception when I try to call the save method from CActiveRecord. What I don’t understand is it is trying to find a property named “save” rather than a method named “save”. Any ideas on what I’m doing wrong?!?!




CException

Description

Property "qb_item.save" is not defined.

Source File

C:\yii-latest\framework\db\ar\CActiveRecord.php(434)



Here is the code:




UtilitiesController.php:


class UtilitiesController extends CController {


  ...


  public function actionProcessItem() {


    ...

    $model = new qb_item;

    $model->save();

    ...


  }


  ...


}




qb_item.php:


class qb_item extends CActiveRecord {


  public static function model($className=__CLASS__)

  {

    return parent::model($className);

  }


  ...


}



Environment:

  • webserver: IIS7

  • PHP version: 5.2.10

  • Yii version: 1.0.10

Have you checked the call stack below the exception? It should help you to find the problematic code.