[TYPO3-mvc] Problems with redirect

Michael Knoll mimi at kaktusteam.de
Wed Aug 4 17:17:01 CEST 2010


Hallo list,

I have a problem doing a redirect in an controller using 
non-domain-objects as parameter:

     /**
      * Renders a filterbox
      *
      * @param 
Tx_PtExtlist_Domain_Model_Messaging_MessageCollectionCollection $errors
      * @return string The rendered filterbox action
      */
     public function 
showAction(Tx_PtExtlist_Domain_Model_Messaging_MessageCollectionCollection 
$errors = null) {
     	$filterbox = $this->getFilterboxForControllerSettings();
    		$this->view->assign('filterValidationErrors', $errors);
         $this->view->assign('filterbox', $filterbox);
     }



     /**
      * Renders submit action
      *
      * @return String
      */
     public function submitAction() {
     	$filterbox = $this->getFilterboxForControllerSettings();
     	$validationErrors = null;
     	if (!$filterbox->validate()) {
     		$validationErrors = $filterbox->getFilterValidationErrors();
     	}
         $this->redirect('show', null, null, array('errors' => 
$validationErrors));
     }


This gives me an error with the following message: #1251730701: The 
value was a simple type, so we could not map it to an object. Maybe the 
@entity or @valueobject annotations are missing?


What am I doing wrong? 
Tx_PtExtlist_Domain_Model_Messaging_MessageCollectionCollection has an 
@entity annotation in its class - nothing changed. The same if I try it 
with @valueobject.

So is there any way to pass this variable as parameter for redirect?

Thanks in advance

Greez

Michael


More information about the TYPO3-project-typo3v4mvc mailing list