Zum Inhalt springen

Weshalb der Fehler: The value must be of type ...... ???

Erstellt am 9. Oktober 2010 · 1 Antwort · letzte Antwort am 17. Oktober 2010

Tags: Frage

mmbln ·

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