CDbException

Description

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

Source File

/var/www/vhosts/isdatproductontwerp.nl/protected_website/views/referentie/view.php(32)

00020:         <ul class="portfolio">
00021:         <?php $first = true; ?>
00022:         <?php foreach( $model->portfolio as $portfolio ): ?>
00023:             <li <?php if( $first ) { echo 'class="first"'; $first = false; } ?>>
00024:                 <div class="portfolio_tekst">
00025:                     <span class="tag"><?php echo strtoupper( $portfolio->type ); ?></span>
00026:                     <h3><?php echo CHtml::link( $portfolio->titel, array( '/portfolio/view', 'id' => $portfolio->id, 'categorie' => $this->categorie->naam ) ); ?></h3>
00027:                     
00028:                     <?php echo nl2br($portfolio->intro); ?>
00029:                 </div>
00030:                 
00031:                 <div class="portfolio_afbeelding">
00032: <?php if( count( $portfolio->afbeeldingen ) > 0 ): ?>
00033: <?php 00034: $afbeeldingen = $portfolio->afbeeldingen; 00035: usort( $afbeeldingen, create_function( '$a,$b', 'return strcmp( $a->bestand, $b->bestand );' ) ); 00036: ?> 00037: <?php echo CHtml::link( CHtml::image( $afbeeldingen[ 0 ]->thumbUrl(), $afbeeldingen[ 0 ]->naam ), array( '/portfolio/view', 'id' => $portfolio->id, 'categorie' => $this->categorie->naam ) ); ?> 00038: <?php endif; ?> 00039: </div> 00040: 00041: <div class="clear"></div> 00042: </li> 00043: 00044: <?php endforeach; ?>

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(51): CActiveFinder->buildJoinTree(Object(CJoinElement), 'afbeeldingen')
#3 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(239): CActiveFinder->__construct(Object(Portfolio), 'afbeeldingen')
#4 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/db/ar/CActiveRecord.php(108): CActiveRecord->getRelated('afbeeldingen')
#5 /var/www/vhosts/isdatproductontwerp.nl/protected_website/views/referentie/view.php(32): CActiveRecord->__get('afbeeldingen')
#6 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CBaseController.php(119): require('/var/www/vhosts...')
#7 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal('/var/www/vhosts...', Array, true)
#8 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(798): CBaseController->renderFile('/var/www/vhosts...', Array, true)
#9 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(739): CController->renderPartial('view', Array, true)
#10 /var/www/vhosts/isdatproductontwerp.nl/protected_website/controllers/ReferentieController.php(189): CController->render('view', Array)
#11 [internal function]: ReferentieController->actionView('5')
#12 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs(Object(ReferentieController), Array)
#13 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(300): CInlineAction->run()
#14 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#15 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#16 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(1049): CFilter->filter(Object(CFilterChain))
#17 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#18 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#19 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(283): CFilterChain->run()
#20 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#21 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CWebApplication.php(324): CController->run('view')
#22 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/web/CWebApplication.php(121): CWebApplication->runController('referentie/view')
#23 /var/www/vhosts/isdatproductontwerp.nl/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#24 /var/www/vhosts/isdatproductontwerp.nl/httpdocs/index.php(17): CApplication->run()
#25 {main}
2024-03-19 10:31:49 Apache Yii Framework/1.1.4