I am using MySQL 5.1 (or some newer…) without defined FK, but if you say that it should not be the case…
More on my error:
01652: * “$model[‘author’][‘firstName’]”.
01653: * @param mixed the model. This can be either an object or an array.
01654: * @param string the attribute name (use dot to concatenate multiple attributes)
01655: * @param mixed the default value to return when the attribute does not exist
01656: * @return mixed the attribute value
01657: * @since 1.0.5
01658: */
01659: public static function value($model,$attribute,$defaultValue=null)
01660: {
01661: foreach(explode(’.’,$attribute) as $name)
01662: {
01663: if(is_object($model))
01664: $model=$model->$name;
01665: else if(is_array($model) && isset($model[$name]))
01666: $model=$model[$name];
01667: else
01668: return $defaultValue;
01669: }
01670: return $model;
01671: }
01672:
01673: /**
01674: * Generates a valid HTML ID based the name.
01675: * @return string the ID generated based on name.
01676: */
Stack trace:
#0 yii/framework/db/CDbCommand.php(272): CDbCommand->queryInternal(‘fetchAll’, 2, Array)
#1 yii/framework/db/ar/CActiveFinder.php(683): CDbCommand->queryAll()
#2 yii/framework/db/ar/CActiveFinder.php(417): CJoinElement->runQuery(Object(CJoinQuery))
#3 yii/framework/db/ar/CActiveFinder.php(142): CJoinElement->lazyFind(Object(Post))
#4 yii/framework/db/ar/CActiveRecord.php(240): CActiveFinder->lazyFind(Object(Post))
#5 yii/framework/db/ar/CActiveRecord.php(108): CActiveRecord->getRelated(‘user’)
#6 yii/framework/web/helpers/CHtml.php(1664): CActiveRecord->__get(‘user’)
#7 yii/framework/zii/widgets/CDetailView.php(201): CHtml::value(Object(Post), ‘user…’)
#8 yii/framework/web/CBaseController.php(166): CDetailView->run()
#9 yii/hrmonic/protected/views/Post/view.php(41): CBaseController->widget(‘zii.widgets.CDe…’, Array)
#10 yii/framework/web/CBaseController.php(119): require(’/home/pc131/dom…’)
#11 yii/framework/web/CBaseController.php(88): CBaseController->renderInternal(’/home/pc131/dom…’, Array, true)
#12 yii/framework/web/CController.php(798): CBaseController->renderFile(’/home/pc131/dom…’, Array, true)
#13 yii/framework/web/CController.php(739): CController->renderPartial(‘view’, Array, true)
#14 yii/hrmonic/protected/controllers/PostController.php(43): CController->render(‘view’, Array)
#15 [internal function]: PostController->actionView(‘1000001’)
#16 yii/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs(Object(PostController), Array)
#17 yii/framework/web/CController.php(300): CInlineAction->run()
#18 yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#19 yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#20 yii/framework/web/CController.php(1049): CFilter->filter(Object(CFilterChain))
#21 yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#22 yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#23 yii/framework/web/CController.php(283): CFilterChain->run()
#24 yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#25 yii/framework/web/CWebApplication.php(324): CController->run(‘view’)
#26 yii/framework/web/CWebApplication.php(121): CWebApplication->runController(‘Post/view’)
#27 yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#28 yii/hrmonic/index.php(13): CApplication->run()
#29 {main}