yii user management problem

CDbException

Description

[b]

The table "{{profile_fields}}" for active record class "YumProfileField" cannot be found in the database.

Source File[/b]

/mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/db/ar/CActiveRecord.php(2168)

02156: private $_model;

02157:

02158: /**

02159: * Constructor.

02160: * @param CActiveRecord $model the model instance

02161: */

02162: public function __construct($model)

02163: {

02164: $this->_model=$model;

02165:

02166: $tableName=$model->tableName();

02167: if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)

02168: throw new CDbException(Yii::t(‘yii’,‘The table “{table}” for active record class “{class}” cannot be found in the database.’,

02169: array(’{class}’=>get_class($model),’{table}’=>$tableName)));

02170: if($table->primaryKey===null)

02171: $table->primaryKey=$model->primaryKey();

02172: $this->tableSchema=$table;

02173: $this->columns=$table->columns;

02174:

02175: foreach($table->columns as $name=>$column)

02176: {

02177: if(!$column->isPrimaryKey && $column->defaultValue!==null)

02178: $this->attributeDefaults[$name]=$column->defaultValue;

02179: }

02180:

Stack Trace

#0 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/db/ar/CActiveRecord.php(353): CActiveRecordMetaData->__construct(Object(YumProfileField))

#1 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CActiveDataProvider.php(63): CActiveRecord::model(‘YumProfileField’)

#2 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/frink/protected/modules/user/modules/profiles/controllers/YumFieldsController.php(138): CActiveDataProvider->__construct(‘YumProfileField’, Array)

#3 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/actions/CInlineAction.php(57): YumFieldsController->actionAdmin()

#4 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CController.php(300): CInlineAction->run()

#5 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))

#6 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/filters/CFilter.php(41): CFilterChain->run()

#7 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CController.php(1084): CFilter->filter(Object(CFilterChain))

#8 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))

#9 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))

#10 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CController.php(283): CFilterChain->run()

#11 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)

#12 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CWebApplication.php(324): CController->run(‘admin’)

#13 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/web/CWebApplication.php(121): CWebApplication->runController(‘user/profiles/f…’)

#14 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/framework/base/CApplication.php(135): CWebApplication->processRequest()

#15 /mnt/stor3-wc2-dfw1/502020/552167/www.frinkk.com/web/content/frink/index.php(13): CApplication->run()

#16 {main}

2011-01-07 07:16:04 Apache/2.2 Yii Framework/1.1.5

any idea what is the problem

problem is in prefix table yust put the whole name withouth ‘{{}}’

in model YumProfileField:




 public function tableName(){

 return 'table_name';

    }