[Flow] Oracle and DateTime > WAS: Validation > Exception instead of going back to newAction
Alexander Berl
a.berl at outlook.com
Wed Dec 11 13:16:02 CET 2013
This should be solved with your custom docrine type too, as it is
responsible for converting from as well as to PHP values/objects.
So when you register your own type for the database "date" field, your
own type will kick in instead of the default doctrine "datetime" type.
Regards,
Alexander
Am 10.12.2013 17:50, schrieb Axel Wüstemann:
> Hello,
>
> I would try, as supposed, to define an own doctrine DateType datatype
> with german format to solve my validation problem, regarding to the mail
> of Alexander.
>
> But I would need some additional hints, how to register the data type to
> doctrine within the Flow framework. Hopefully somebody would answer my
> question in the last mail. Maybe tomorrow, if all of the NEOS gang are
> sorbered up from the release party ;=)
>
> Beside of this, and suggested that this will solve the claimed
> validation problem: It comes to another point with authentification.
>
> In TYPO3\Flow\Security\Account
>
> there are two DateTime fields defined
>
> /**
> * @var \DateTime
> */
> protected $creationDate;
>
> /**
> * @var \DateTime
> * @ORM\Column(nullable=true)
> */
> protected $expirationDate;
>
> With this I get:
>
> Could not convert database value "01.10.13 17:32:02" to Doctrine Type
> datetime. Expected format: Y-m-d H:i:s
>
> So I need to redeclare datetime instead of creating an own type to solve
> this. Would this be done the same way?
>
> Thanks
> Axel
>
More information about the Flow
mailing list