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

Axel Wüstemann awu at qbus.de
Tue Dec 10 16:10:32 CET 2013


Am 09.12.2013 11:11, schrieb Alexander Berl:
> maybe you can go a little different way about the core problem with the NLS:
> create your own Doctrine Type that formats the DateTime correctly,
> similar to how timezone is handled here:
> http://docs.doctrine-project.org/en/2.0.x/cookbook/working-with-datetime.html


Now I'm wondering how register my DateTime to Flow/Doctrine?

http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html

Type::addType('money', 'My\Project\Types\MoneyType');
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('MyMoney', 
'money');

Where to put this in the Flow environment?


More information about the Flow mailing list