|
Verfasst am: 09. 10. 2010 [15:34]
|
|
mmbln
Themenersteller
Dabei seit: 22.07.2010
Beiträge: 10
|
Hallo zusammen,
irgendwie stehe ich nach ca. 5 Std. Fehlersuche aufm Schlauch. Ich habe ein Formular das ich abschicke und der Controller gibt mir folgende Fehlermeldung zurück:
Tx_Extbase_MVC_Exception_InvalidArgumentValue
The value must be of type "Tx_MmosEventservice_Domain_Model_Booking", but was of type "NULL".
So sieht die Action aus:
/**
* Update a booking
*
* @param Tx_MmosEventservice_Domain_Model_Booking $booking
* @return void
*/
public function bookingupdateAction(Tx_MmosEventservice_Domain_Model_Booking $booking){
$this -> bookingRepository -> update($booking);
$this -> redirect('index');
}
Folgende Werte werden vom Formular abgeschickt:
[tx_mmoseventservice_pi1] => Array
(
[action] => update
[controller] => Booking
[booking] => Array
(
[__identity] => 12
[price] => 30
[paid] => 33
[paidate] =>
[invoiceno] => 0
[participated] => 1
[notice] =>
)
[__referrer] => Array
(
[extensionName] => MmosEventservice
[controllerName] => Event
[actionName] => bookings
)
[__hmac] => a:3:{s:7:\"booking\";a:7:{s:5:\"price\";i:1;s:4:\"paid\";i:1;s:7:\"paidate\";i:1;s:9:\"invoiceno\";i:1;s:12:\"participated\";i:1;s:6:\"notice\";i:1;s:10:\"__identity\";i:1;}s:6:\"action\";i:1;s:10:\"controller\";i:1;}3915881d739d43f0a715ef1ec07b6ac738f7bf68
)
Hat jemand eine Idee, weshalb die Meldung "The value must be of type "Tx_MmosEventservice_Domain_Model_Booking", but was of type "NULL"." erscheint? Habe ich irgend etwas im Formular nicht abgeschickt?
Würde mich über jeden Hinweis freun.
Viele Grüße micha
[Dieser Beitrag wurde 2mal bearbeitet, zuletzt am 09.10.2010 um 15:56.]
|
|
Verfasst am: 17. 10. 2010 [17:42]
|
|
super-mario
Dabei seit: 26.02.2007
Beiträge: 46
|
da schickst du in deinem formular sicher die falsche daten los, zeig mal dein html/fluid code von dem Formular...
|