[TYPO3-mvc] 6.2: How to debug recursive validation
g4-lisz at tonarchiv.ch
g4-lisz at tonarchiv.ch
Sat May 17 15:52:56 CEST 2014
Hi Matthew,
that's where I started trying to find the issue...
I wonder why the error message doesn't tell where the validation fails.
The parameter/object handed to the action is correct, so it must be a
validation issue...
But why does it work when beeing called from a plugin COA. But from
typoscript userfunc it doesn't?
Why did it work in T3 4.6?
The domain object in question has so many depencies... I don't know
where to start. Hence my question still remains: How can I debug the
validation? Is there a way to make the errors a little bit more
communicative?
Cheers,
Till
On 05/17/2014 10:29 AM, Matthew Colton wrote:
> 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!
>
More information about the TYPO3-project-typo3v4mvc
mailing list