[TYPO3-mvc] Best Practice? Mapping of DateTime in a simple Request (without a Domain Model)
Marc Bastian Heinrichs
typo3 at mbh-web.de
Mon Mar 28 21:44:22 CEST 2011
Hey,
> Here's my next Question. I've got a simple search form with a textfield, that should get turned into a DateTime Object. This DateTime will then be used to find the according item.
>
> I tried to do it with @param DateTime but that will give throw new
> Tx_Extbase_MVC_Exception_InvalidArgumentValue('The value was a simple type, so we could not map it
> to an object. Maybe the @entity or @valueobject annotations are missing?', 1251730701);
> @dontvalidate won't do anything.
>
> [...]
>
> What is the suggested way of handling DateTimes without a Domain Model?
without a Domain Model and validation? - no idea. Using a demand object
handling the search form fields as properties would be the best.
Regards
Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list