Fehler #245
geschlossenUnterstützung #216: Browserinkompatibilitäten und Testen
Unterstützung #239: Formulare testen
Elternsprechtag löschen
100%
Beschreibung
Die Eingaben sind im Screen angehängt.
Rolle: Admin, Aktion: Elternsprechtag löschen, Seite: index.php?r=date/delete&id=4
CDbException
Tabelle "appointment" hat kein Feld namens "dateTime_id".
/home/est/public_html/est_trunk/framework/db/schema/CDbCommandBuilder.php(694)
682 }
683 else
684 {
685 $conditions[]=$prefix.$column->rawName.'='.self::PARAM_PREFIX.$i;
686 $values[self::PARAM_PREFIX.$i]=$value;
687 $i++;
688 }
689 }
690 else
691 $conditions[]=$prefix.$column->rawName.' IS NULL';
692 }
693 else
694 throw new CDbException(Yii::t('yii','Table "{table}" does not have a column named "{column}".',
695 array('{table}'=>$table->name,'{column}'=>$name)));
696 }
697 $criteria->params=array_merge($values,$criteria->params);
698 if(isset($conditions0))
699 {
700 if($criteria->condition!='')
701 $criteria->condition=implode(' AND ',$conditions).' AND ('.$criteria->condition.')';
702 else
703 $criteria->condition=implode(' AND ',$conditions);
704 }
705 return $criteria;
706 }
Stack Trace
#0
+
/home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(1815): CDbCommandBuilder->createColumnCriteria(CMysqlTableSchema, array("dateTime_id" => "33"), "", array())
#1
–
/home/est/public_html/est_trunk/protected/models/Date.php(204): CActiveRecord->deleteAllByAttributes(array("dateTime_id" => "33"))
199 */
200 public function beforeDelete() {
201 $a_dateTimes = DateAndTime::model()->findAllByAttributes(array('date_id' => $this->id));
202 if (!empty($a_dateTimes)) {
203 foreach ($a_dateTimes as $dateTime) {
204 Appointment::model()->deleteAllByAttributes(array('dateTime_id' => $dateTime->id));
205 $dateTime->delete();
206 }
207 }
208 return parent::beforeDelete();
209 }
#2
+
/home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(1200): Date->beforeDelete()
#3
–
/home/est/public_html/est_trunk/protected/controllers/DateController.php(150): CActiveRecord->delete()
145 * Deletes a particular model.
146 * If deletion is successful, the browser will be redirected to the 'admin' page.
147 * @param integer $id the ID of the model to be deleted
148 */
149 public function actionDelete($id) {
150 $this->loadModel($id)->delete();
151
152 // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
153 if (!isset($_GET['ajax']))
154 $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
155 }
#4
unknown(0): DateController->actionDelete("4")
#5
/home/est/public_html/est_trunk/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(DateController, array("4"))
#6
/home/est/public_html/est_trunk/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(DateController, ReflectionMethod, array("r" => "date/delete", "id" => "4"))
#7
/home/est/public_html/est_trunk/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "date/delete", "id" => "4"))
#8
/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#9
/home/est/public_html/est_trunk/framework/web/filters/CFilter.php(40): CFilterChain->run()
#10
/home/est/public_html/est_trunk/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#11
/home/est/public_html/est_trunk/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#12
/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#13
/home/est/public_html/est_trunk/framework/web/CController.php(291): CFilterChain->run()
#14
/home/est/public_html/est_trunk/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#15
/home/est/public_html/est_trunk/framework/web/CWebApplication.php(282): CController->run("delete")
#16
/home/est/public_html/est_trunk/framework/web/CWebApplication.php(141): CWebApplication->runController("date/delete")
#17
+
/home/est/public_html/est_trunk/framework/base/CApplication.php(169): CWebApplication->processRequest()
#18
–
/home/est/public_html/est_trunk/index.php(30): CApplication->run()
25 defined('YII_DEBUG') or define('YII_DEBUG', true);
26 // specify how many levels of call stack should be shown in each log message
27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
28
29 require_once($yii);
30 Yii::createWebApplication($config)->run();