CDbException

La tabla "tguest_novedades" definida en la clase active record "NovedadesAR" no se ha podido encontrar en la base de datos.

/home/nssmart/application/yii/framework/db/ar/CActiveRecord.php(2362)

2350 
2351     /**
2352      * Constructor.
2353      * @param CActiveRecord $model the model instance
2354      * @throws CDbException if specified table for active record class cannot be found in the database
2355      */
2356     public function __construct($model)
2357     {
2358         $this->_modelClassName=get_class($model);
2359 
2360         $tableName=$model->tableName();
2361         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2362             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2363                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2364         if($table->primaryKey===null)
2365         {
2366             $table->primaryKey=$model->primaryKey();
2367             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2368                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2369             elseif(is_array($table->primaryKey))
2370             {
2371                 foreach($table->primaryKey as $name)
2372                 {
2373                     if(isset($table->columns[$name]))
2374                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#4
+
 /home/nssmart/application/protected/controllers/NovedadesController.php(269): CActiveRecord->find("id = :match1", array(":match1" => "91"))
264         if(!$ARmodel)
265         {
266             $ARmodel = NovedadesAR::model()->find(
267                 'id = :match1',
268                 array(':match1' => $id)
269             );
270             if(!$ARmodel)
271                 $this->redirect(array('site/index'));
272             else
273                 $this->render('ver', array('ARmodel' => $ARmodel));
274         }
#19
+
 /home/nssmart/application/webASE/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 15:40:58 Apache/2.4.57 (Debian) Yii Framework/1.1.14