Warning: Constants may only evaluate to scalar values in /var/www/u2598725/data/www/fboo.ru/k-config.php on line 13
CDbException

CDbException

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

/var/www/u2598725/data/www/fboo.ru/framework/yiilite.php(8648)

8636 class CActiveRecordMetaData
8637 {
8638     public $tableSchema;
8639     public $columns;
8640     public $relations=array();
8641     public $attributeDefaults=array();
8642     private $_modelClassName;
8643     public function __construct($model)
8644     {
8645         $this->_modelClassName=get_class($model);
8646         $tableName=$model->tableName();
8647         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
8648             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
8649                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
8650         if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
8651         {
8652             $table->primaryKey=$modelPk;
8653             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
8654                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
8655             elseif(is_array($table->primaryKey))
8656             {
8657                 foreach($table->primaryKey as $name)
8658                 {
8659                     if(isset($table->columns[$name]))
8660                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#4
+
 /var/www/u2598725/data/www/fboo.ru/protected/components/CustomUrlRule.php(21): CActiveRecord->find("restaurant_slug=:restaurant_slug AND status=:status", array(":restaurant_slug" => "component", ":status" => "active"))
16                                                 
17             $slug_name = isset($matches[0])?$matches[0]:'';                
18             
19             $dependency = CCacheData::dependency();
20             $model = AR_merchant::model()->cache(Yii::app()->params->cache, $dependency)->find('restaurant_slug=:restaurant_slug AND status=:status', 
21             array(':restaurant_slug'=>$slug_name, ':status'=>'active' )); 
22             if($model){    
23                if(!empty($model->restaurant_slug)){
24                    return 'menu/menu';
25                }               
26             }
#8
+
 /var/www/u2598725/data/www/fboo.ru/index.php(17): CApplication->run()
12 
13 // remove the following line when in production mode
14 defined('YII_DEBUG') or define('YII_DEBUG',true);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-04-26 06:35:06 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7 Yii Framework/1.1.24