[TYPO3-mvc] 6.2: How to debug recursive validation

Matthew Colton mat.colton at web-xs.de
Sat May 17 10:29:34 CEST 2014


Hi Till,
in 9 of 10 cases the error "An error occurred while trying to call"
means one or more of the object(s) you are handing over to the action
are incorrect.

Example

Controller: EventDateController
This controller handles the event dates of an event, events may have
multiple event dates. An event date object always must have a
corresponding event object.

/**
 * @param \MY\Namespace\Domain\Model\Event $event
 * @return void
 */
public function newAction(\MY\Namespace\Domain\Model\Event $event) {

Either the object is not of the named type or some kind of validation
issue. Remember Typo3 6.2 uses recursive validation on objects. So
referring to the example above some field of the event object or its
related objects fails to validate against the rules set in its model.

HTH!

-- 
Cheers
Matthew

Am 15.05.2014 14:02, schrieb g4-lisz at tonarchiv.ch:
> An error occurred while trying to call


More information about the TYPO3-project-typo3v4mvc mailing list