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

Axel Wüstemann awu at qbus.de
Wed Dec 11 10:51:13 CET 2013


Thanks Alexander,

I'm afraid, tham I'm a bit swamped with it, I'm a beginner in Flow... ;=)

Axel

Am 11.12.2013 10:37, schrieb Alexander Berl:
> You need access to the doctrine entity manager to get the connection.
> However, the entity manager is capsulated inside the flow persistence
> manager and not publically getable.
>
> The optimal solution would be to add some custom doctrine type
> configuration within TYPO3.Flow.persistence.doctrine.* and then use that
> configuration within
> TYPO3\Flow\Persistence\Doctrine\EntityManagerFactory to setup the
> doctrine types from configuration.
> That would even be worth a changeset to contribute to flow.
>
> As a rough sample how such a configurable doctrine setup could look, you
> can refer to my changeset that allows configuration of doctrine event
> listeners/subscribers:
>
> https://review.typo3.org/#/c/19984/6
>
> Regards,
> Alexander
>
> Am 10.12.2013 16:10, schrieb Axel Wüstemann:
>> 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?
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>


-- 
Qbus Werbeagentur GmbH

18055 Rostock, Heiligengeisthof 5
Tel:   0381 4 61 39 - 10 | Fax: - 22
21029 Hamburg, Chrysanderstraße 69A
Tel:   040 60 94 59 75
Mobil: 0179 46 455 46

www.xing.com/profile/Axel_Wuestemann
www.issuu.com/QbusAgentur/docs/qbus-referenzen?mode=embed

Handelsregister: HRB 11218 beim Amtsgericht Rostock Sitz der
Gesellschaft: Hansestadt Rostock
Geschäftsführer: Dipl.-Ing. Axel Wüstemann

www.qbus.de | www.qbus.de/qblog
www.facebook.com/QbusAgentur


More information about the Flow mailing list