Projekt

Allgemein

Profil

Aktionen

Fehler #242

geschlossen

Fehler Lehrerauswahl

Von Matthias Unterbusch vor fast 11 Jahren hinzugefügt. Vor fast 11 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Kategorie:
Back-End
Zielversion:
Beginn:
07.05.2013
Abgabedatum:
% erledigt:

100%

Geschätzter Aufwand:

Beschreibung

Rolle: Eltern, Aktion: Lehrerauswahl, Seite: makeAppointment&teacher=2

CException

Weder ParentChild noch zugehörige Behavior haben einen Scope "searchParentChildWithId".

/home/est/public_html/est_trunk/framework/base/CComponent.php(266)

254 public function __call($name,$parameters)
255 {
256 if($this->_m!==null)
257 {
258 foreach($this->_m as $object)
259 {
260 if($object->getEnabled() && method_exists($object,$name))
261 return call_user_func_array(array($object,$name),$parameters);
262 }
263 }
264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)
265 return call_user_func_array($this->$name, $parameters);
266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',
267 array('{class}'=>get_class($this), '{name}'=>$name)));
268 }
269
270 /**
271 * Returns the named behavior object.
272 * The name 'asa' stands for 'as a'.
273 * @param string $behavior the behavior name
274 * @return IBehavior the behavior object, or null if the behavior does not exist
275 */
276 public function asa($behavior)
277 {
278 return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;

Stack Trace
#0
+
/home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(227): CComponent->_call("searchParentChildWithId", array("36"))
#1

/home/est/public_html/est_trunk/protected/controllers/AppointmentController.php(546): CActiveRecord->
_call("searchParentChildWithId", array("36"))

541 $selectContent = array();
542 $a_options = array('prompt' => 'Geben Sie einen Elternnamen ein');
543 if (!empty($userId)) {
544 $dataProvider = new ParentChild();
545 $dataProvider->unsetAttributes();
546 $criteria = $dataProvider->searchParentChildWithId($userId);
547 // $criteria->with = array('user', 'child');
548 // $criteria->select = '*';
549 $a_parentChild = ParentChild::model()->findAllByAttributes(array('user_id' => $userId), array('with' => array('user', 'child'), 'select' => '*'));
550 $selectContent = (empty($a_parentChild)) ? array('prompt' => 'Bitte legen Sie mindestens ein Kind an bevor Sie fortfahren') : CHtml::listData($a_parentChild, 'id', function($post) {
551 return $post->child->firstname . ' ' . $post->child->lastname;

#2

/home/est/public_html/est_trunk/protected/controllers/AppointmentController.php(546): ParentChild->searchParentChildWithId("36")

541 $selectContent = array();
542 $a_options = array('prompt' => 'Geben Sie einen Elternnamen ein');
543 if (!empty($userId)) {
544 $dataProvider = new ParentChild();
545 $dataProvider->unsetAttributes();
546 $criteria = $dataProvider->searchParentChildWithId($userId);
547 // $criteria->with = array('user', 'child');
548 // $criteria->select = '*';
549 $a_parentChild = ParentChild::model()->findAllByAttributes(array('user_id' => $userId), array('with' => array('user', 'child'), 'select' => '*'));
550 $selectContent = (empty($a_parentChild)) ? array('prompt' => 'Bitte legen Sie mindestens ein Kind an bevor Sie fortfahren') : CHtml::listData($a_parentChild, 'id', function($post) {
551 return $post->child->firstname . ' ' . $post->child->lastname;

#3

/home/est/public_html/est_trunk/protected/views/appointment/makeAppointment.php(109): AppointmentController->createSelectChildren("36", "Appointment", "parent_child_id")

104 <div class="two columns">
105 <span class="prefix">Für</span>
106 </div>
107 <div class="ten columns mobile-input">
108 <div class="styled-select">
109 createSelectChildren(Yii::app()->user->getId(), get_class($model), 'parent_child_id'); ?>
110 error($model, 'parent_child_id'); ?>
111 </div>
112 </div>
113 </div>
114 'button right')); ?>

#4

/home/est/public_html/est_trunk/framework/web/CBaseController.php(126): require("/home/est/public_html/est_trunk/protected/views/appointment/make...")
#5

/home/est/public_html/est_trunk/protected/extensions/yii-debug-toolbar/components/YiiDebugViewRenderer.php(47): CBaseController->renderInternal("/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment, "a_dates" => array(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...)), "a_tabs" => array("29.05.2013" => "<div style="display:none;" id="date-ui-id-1">29.05.2013</div><ta..."), "columnCount" => "twelve", ...), true)
#6

/home/est/public_html/est_trunk/framework/web/CBaseController.php(93): YiiDebugViewRenderer->renderFile(AppointmentController, "/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment, "a_dates" => array(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...)), "a_tabs" => array("29.05.2013" => "<div style="display:none;" id="date-ui-id-1">29.05.2013</div><ta..."), "columnCount" => "twelve", ...), true)
#7

/home/est/public_html/est_trunk/framework/web/CController.php(869): CBaseController->renderFile("/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment, "a_dates" => array(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...)), "a_tabs" => array("29.05.2013" => "<div style="display:none;" id="date-ui-id-1">29.05.2013</div><ta..."), "columnCount" => "twelve", ...), true)
#8

/home/est/public_html/est_trunk/framework/web/CController.php(782): CController->renderPartial("makeAppointment", array("model" => Appointment, "a_dates" => array(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...)), "a_tabs" => array("29.05.2013" => "<div style="display:none;" id="date-ui-id-1">29.05.2013</div><ta..."), "columnCount" => "twelve", ...), true)
#9

/home/est/public_html/est_trunk/protected/controllers/AppointmentController.php(237): CController->render("makeAppointment", array("model" => Appointment, "a_dates" => array(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...)), "a_tabs" => array("29.05.2013" => "<div style="display:none;" id="date-ui-id-1">29.05.2013</div><ta..."), "columnCount" => "twelve", ...))
#10
unknown(0): AppointmentController->actionMakeAppointment("2")
#11

/home/est/public_html/est_trunk/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(AppointmentController, array("2"))
#12

/home/est/public_html/est_trunk/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(AppointmentController, ReflectionMethod, array("r" => "Appointment/makeAppointment", "teacher" => "2"))
#13

/home/est/public_html/est_trunk/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "Appointment/makeAppointment", "teacher" => "2"))
#14

/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#15

/home/est/public_html/est_trunk/framework/web/filters/CFilter.php(40): CFilterChain->run()
#16

/home/est/public_html/est_trunk/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#17

/home/est/public_html/est_trunk/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#18

/home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#19

/home/est/public_html/est_trunk/framework/web/CController.php(291): CFilterChain->run()
#20

/home/est/public_html/est_trunk/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#21

/home/est/public_html/est_trunk/framework/web/CWebApplication.php(282): CController->run("makeAppointment")
#22

/home/est/public_html/est_trunk/framework/web/CWebApplication.php(141): CWebApplication->runController("Appointment/makeAppointment")
#23

/home/est/public_html/est_trunk/framework/base/CApplication.php(169): CWebApplication->processRequest()
#24

/home/est/public_html/est_trunk/index.php(30): CApplication->run()

Aktionen #1

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

  • Status wurde von Neu zu Erledigt geändert
  • % erledigt wurde von 0 zu 100 geändert

r589

Aktionen

Auch abrufbar als: Atom PDF