CDbException

Description

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

Source File

/var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(2159)

02147:     private $_model;
02148: 
02149:     /**
02150:      * Constructor.
02151:      * @param CActiveRecord the model instance
02152:      */
02153:     public function __construct($model)
02154:     {
02155:         $this->_model=$model;
02156: 
02157:         $tableName=$model->tableName();
02158:         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
02159: throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
02160: array('{class}'=>get_class($model),'{table}'=>$tableName))); 02161: if($table->primaryKey===null) 02162: $table->primaryKey=$model->primaryKey(); 02163: $this->tableSchema=$table; 02164: $this->columns=$table->columns; 02165: 02166: foreach($table->columns as $name=>$column) 02167: { 02168: if(!$column->isPrimaryKey && $column->defaultValue!==null) 02169: $this->attributeDefaults[$name]=$column->defaultValue; 02170: } 02171:

Stack Trace

#0 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(353): CActiveRecordMetaData->__construct(Object(Afbeelding))
#1 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveFinder.php(185): CActiveRecord::model('Afbeelding')
#2 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveFinder.php(228): CActiveFinder->buildJoinTree(Object(CJoinElement), 'afbeeldingen')
#3 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveFinder.php(51): CActiveFinder->buildJoinTree(Object(CJoinElement), Array)
#4 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(1235): CActiveFinder->__construct(Object(Portfolio), Array)
#5 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(1333): CActiveRecord->query(Object(CDbCriteria))
#6 /var/www/vhosts/isdatproductontwerp.nl/protected_website/controllers/PortfolioController.php(269): CActiveRecord->findByPk(12)
#7 /var/www/vhosts/isdatproductontwerp.nl/protected_website/controllers/PortfolioController.php(66): PortfolioController->loadModel('12')
#8 [internal function]: PortfolioController->actionView('12')
#9 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs(Object(PortfolioController), Array)
#10 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(300): CInlineAction->run()
#11 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#12 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#13 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(1049): CFilter->filter(Object(CFilterChain))
#14 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#15 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#16 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(283): CFilterChain->run()
#17 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CWebApplication.php(324): CController->run('view')
#19 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CWebApplication.php(121): CWebApplication->runController('portfolio/view')
#20 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#21 /var/www/vhosts/isdatproductontwerp.nl/httpdocs/index.php(17): CApplication->run()
#22 {main}
2024-03-19 08:39:33 Apache Yii Framework/1.1.4