CDbException

Column name must be either a string or an array.

/home/beraukab/public_html/dpmptsp/framework/db/schema/CDbCommandBuilder.php(828)

816             }
817             if(count($values)===1)
818             {
819                 $entries=array();
820                 foreach($values[0] as $name=>$value)
821                     $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value);
822                 return implode(' AND ',$entries);
823             }
824 
825             return $this->createCompositeInCondition($table,$values,$prefix);
826         }
827         else
828             throw new CDbException(Yii::t('yii','Column name must be either a string or an array.'));
829     }
830 
831     /**
832      * Generates the expression for selecting rows with specified composite key values.
833      * @param CDbTableSchema $table the table schema
834      * @param array $values list of primary key values to be selected within
835      * @param string $prefix column prefix (ended with dot)
836      * @return string the expression for selection
837      */
838     protected function createCompositeInCondition($table,$values,$prefix)
839     {
840         $keyNames=array();

Stack Trace

#2
+
 /home/beraukab/public_html/dpmptsp/protected/controllers/WebController.php(551): CActiveRecord->findByPk("10")
546 }
547 
548 public function actionDetail()
549 {
550     $id = Yii::app()->request->getParam('id');
551     $model_kontent = WebKontent::model()->findByPk($id);
552     $this->render('detail', array('model_kontent' =>$model_kontent));
553 }
554 
555 public function actionsimpanpollingv2()
556 {
#10
+
 /home/beraukab/public_html/dpmptsp/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2019-02-24 00:43:54 Apache Yii Framework/1.1.15