CDbException

La table « {{survey_777735}} » associée à la classe Active record « SurveyDynamic » 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(34): CActiveRecord->hasAttribute("created")
29      * @return array
30      */
31     public function behaviors()
32     {
33         $aBehaviors = array();
34         $sCreateFieldName = ($this->hasAttribute('created') ? 'created' : null);
35         $sUpdateFieldName = ($this->hasAttribute('modified') ? 'modified' : null);
36         $sDriverName = Yii::app()->db->getDriverName();
37         if ($sDriverName == 'sqlsrv' || $sDriverName == 'dblib') {
38             $sTimestampExpression = new CDbExpression('GETDATE()');
39         } else {
#4
+
 /mnt/data/shnoulle/nginx/www/master/application/models/SurveyDynamic.php(54): CActiveRecord::model("SurveyDynamic")
49             self::$survey = $survey;
50             $refresh = true;
51         }
52 
53         /** @var self $model */
54         $model = parent::model(__CLASS__);
55 
56         //We need to refresh if we changed sid
57         if ($refresh === true) {
58             $model->refreshMetaData();
59         }
#5
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/replacements_helper.php(225): SurveyDynamic::model("777735")
220     }
221 
222     $_linkreplace = '';
223 
224     if (isset($thissurvey['sid']) && isset($_SESSION['survey_'.$thissurvey['sid']]['srid']) && $thissurvey['active'] == 'Y') {
225         $iscompleted = $thissurvey['iscompleted'] = SurveyDynamic::model($surveyid)->isCompleted($_SESSION['survey_'.$thissurvey['sid']]['srid']);
226     } else {
227         $iscompleted = $thissurvey['iscompleted'] = false;
228     }
229 
230     if (isset($surveyid) && isset($_SESSION['survey_'.$surveyid]['srid'])) {
2019-03-23 16:59:23 nginx/1.14.2 Yii Framework/1.1.20