[Flow] Validation > Exception instead of going back to newAction

Axel Wüstemann awu at qbus.de
Thu Dec 5 19:01:54 CET 2013


Am 05.12.2013 14:29, schrieb Bastian Waidelich:
> protected function initializeCreateAction() { $depositInspection =
> $this->arguments->getArgument('depositInspection'); if
> ($depositInspection !== NULL) { $depositInspection->setDate(...); }
> }


This unfortunately does not work because in this state
$depositInspection ist not of type
...\FisheryInspection\Domain\Model\DepositInspection
but of type
TYPO3\Flow\Mvc\Controller\Argument


> <f:form.textfield property="date.date" ... and <f:form.textfield
> property="date.hour" ... <f:form.textfield property="date.minute"
> ... and a hidden field with the expected date format: <f:form.hidden
> property="date.dateFormat" value="dd.mm.yy" />

Wouldn't this lead to the same problem: Therefor I would need a 
converter from array to datetime. This converter I would setup in the 
createAction, where the validation already was done...

A bit frustating, that in the first step simple things lead to those 
complex thing.. ;=)

To be honest, I don't know, what I can do now.


More information about the Flow mailing list