symfony/symfony — comment on commit 3c2539fccbaaded0025c96bf56b7767440b2b28f
File: src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php line 41
By wodor:

seems I've gone through the same path as @tacker,
This exception is the only thing which stops me from just inherit from DateTimeType in DatePickerType.
This way I could avoid copying code of buildForm method https://github.com/wodor/HudsonJQueryBundle/blob/datePickerType/Form/DatePickerType.php
(this is ugly, but working, date_widget value is changed after this 'if')
Everything necessary for displaying datepicker, next to drop-down hour and minute,
is setting reasonable default options and changing getName to return 'datepicker'. (and creating appropriate block)