CDbException

Таблица "{{product_product}}", упомянутая в записи active record класса "Product", не найдена в базе данных.

/home/virtwww/w_abs12_63f665b0/http/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

#3
+
 /home/virtwww/w_abs12_63f665b0/http/protected/controllers/CatalogController.php(152): CActiveRecord->__construct()
147         ));
148     }
149     public function actionIndex($id=0)
150     {
151         
152         $product = new Product;
153         $key = isset($_POST['skey']) ? $_POST['skey'] : '';
154         $selc = isset($_POST['select']) ? $_POST['select'] : '';
155         
156         $orderby=isset($_GET['orderby']) ? $_GET['orderby'] : '';
157         $od=isset($_GET['od']) ? $_GET['od'] : '';
#13
+
 /home/virtwww/w_abs12_63f665b0/http/index.php(13): CApplication->run()
08 
09 // remove the following line when in production mode
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 18:00:17 Apache Yii Framework/1.1.10