CDbException

La table « {{tokens_624189}} » associée à la classe Active record « Token_624189 » est introuvable dans la base de données.

/mnt/data/shnoulle/nginx/www/master/framework/db/ar/CActiveRecord.php(2390)

2378 
2379     /**
2380      * Constructor.
2381      * @param CActiveRecord $model the model instance
2382      * @throws CDbException if specified table for active record class cannot be found in the database
2383      */
2384     public function __construct($model)
2385     {
2386         $this->_modelClassName=get_class($model);
2387 
2388         $tableName=$model->tableName();
2389         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2390             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2391                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2392                 
2393         if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
2394         {
2395             $table->primaryKey=$modelPk;
2396             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2397                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2398             elseif(is_array($table->primaryKey))
2399             {
2400                 foreach($table->primaryKey as $name)
2401                 {
2402                     if(isset($table->columns[$name]))

Stack Trace

#2
+
 /mnt/data/shnoulle/nginx/www/master/application/models/LSActiveRecord.php(35): CActiveRecord->hasAttribute("created")
30      * @return array
31      */
32     public function behaviors()
33     {
34         $aBehaviors = array();
35         $sCreateFieldName = ($this->hasAttribute('created') ? 'created' : null);
36         $sUpdateFieldName = ($this->hasAttribute('modified') ? 'modified' : null);
37         $sDriverName = Yii::app()->db->getDriverName();
38         if ($sDriverName == 'sqlsrv' || $sDriverName == 'dblib') {
39             $sTimestampExpression = new CDbExpression('GETDATE()');
40         } else {
#4
+
 /mnt/data/shnoulle/nginx/www/master/application/models/Dynamic.php(38): CActiveRecord::model("Token_624189")
33             $className = get_called_class();
34         } elseif (is_numeric($className)) {
35             $className = get_called_class().'_'.$className;
36         }
37         /** @var self $model */
38         $model = parent::model($className);
39         return $model;
40     }
41 
42     /**
43      * @param string $scenario
#5
+
 /mnt/data/shnoulle/nginx/www/master/application/models/Token.php(338): Dynamic::model("Token_624189")
333      * @return Token
334      */
335     public static function model($className = null)
336     {
337         /** @var self $model */
338         $model = parent::model($className);
339         return $model;
340     }
341 
342     /**
343      * @param int $surveyId