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

Axel Wüstemann awu at qbus.de
Fri Dec 6 14:56:21 CET 2013


Am 06.12.2013 14:49, schrieb Carsten Bleicker:
> as i can see your $date is of type @var string
> so there should never a dateTime converter match to your input
> but you configured one in initialize action, right?
> so i think doctrine tries to write a datetime object into the db wich is a string field there?
> is this the problem?

No, the problem is, that - in the form - I need to divide the datetime 
into __date and __time and that this both are not model properties. So 
when it comes to MVC validation, there is no date an nothing will be 
validated.

If the object then should be persisted, the persistence validation will 
act and I run into an exception.

See: 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartIII/Validation.html

The warning in the box.

This is the theory now - maybe it is wrong?

Axel




More information about the Flow mailing list