CDbException

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

/mnt/fs4/webdata/www.gesundheitsfoerderung.uni-osnabrueck.de/htdocs/framework/db/ar/CActiveRecord.php(2264)

2252     private $_model;
2253 
2254     /**
2255      * Constructor.
2256      * @param CActiveRecord $model the model instance
2257      */
2258     public function __construct($model)
2259     {
2260         $this->_model=$model;
2261 
2262         $tableName=$model->tableName();
2263         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2264             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2265                 array('{class}'=>get_class($model),'{table}'=>$tableName)));
2266         if($table->primaryKey===null)
2267         {
2268             $table->primaryKey=$model->primaryKey();
2269             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2270                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2271             else if(is_array($table->primaryKey))
2272             {
2273                 foreach($table->primaryKey as $name)
2274                 {
2275                     if(isset($table->columns[$name]))
2276                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#1
+
–
 /mnt/fs4/webdata/www.gesundheitsfoerderung.uni-osnabrueck.de/htdocs/application/models/Survey_dynamic.php(37): CActiveRecord::model("Survey_dynamic")
32         if (!is_null($sid)) {
33             self::sid($sid);
34             $refresh = true;
35         }
36         
37         $model = parent::model(__CLASS__);
38         
39         //We need to refresh if we changed sid
40         if ($refresh === true) $model->refreshMetaData();
41         return $model;
42     }
#2
+
–
 /mnt/fs4/webdata/www.gesundheitsfoerderung.uni-osnabrueck.de/htdocs/application/controllers/admin/surveyadmin.php(665): Survey_dynamic::model("496523")
660             }
661 
662             //Set Responses
663             if ($rows['active'] == "Y")
664             {
665                 $partial = Survey_dynamic::model($rows['sid'])->countByAttributes(array('submitdate' => null));
666                 $all = Survey_dynamic::model($rows['sid'])->count();
667 
668                 $aSurveyEntry[] = $all - $partial;
669                 $aSurveyEntry[] = $partial;
670                 $aSurveyEntry[] = $all;
#5
+
–
 /mnt/fs4/webdata/www.gesundheitsfoerderung.uni-osnabrueck.de/htdocs/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "getSurveys_json"))
77             $oMethod = new ReflectionMethod($this, $sDefault);
78         }
79 
80         // We're all good to go, let's execute it
81         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
82         return parent::runWithParamsInternal($this, $oMethod, $params);
83     }
84 
85     /**
86     * Some functions have different parameters, which are just an alias of the
87     * usual parameters we're getting in the url. This function just populates
2012-12-11 17:19:27 Apache/2.2.15 (Scientific Linux) Yii Framework/1.1.10