CDbException

The table "jobseeker" for active record class "Jobseeker" cannot be found in the database.

/home/xcowcom/public_html/jober/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
+
 /home/xcowcom/public_html/jober/protected/modules/jobseeker/controllers/JobseekerController.php(106): CActiveRecord->__construct()
101      * Creates a new model.
102      * If creation is successful, the browser will be redirected to the 'view' page.
103      */
104     public function actionCreate()
105     {
106         $model=new Jobseeker;
107 
108         // Uncomment the following line if AJAX validation is needed
109         // $this->performAjaxValidation($model);
110 
111         if(isset($_POST['Jobseeker']))
#15
+
 /home/xcowcom/public_html/jober/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-29 14:06:29 LiteSpeed Yii Framework/1.1.19