What you can do is create your own form generator.
class myFormGenerator extends sfDoctrineGenerator { public function getWidgetClassForColumn($column) { switch ($column->getDoctrineType()) { case 'date': return 'sfWidgetFormJQueryDate'; break; default: return parent::getWidgetClassForColumn($column); } } }
Save this somewhere reasonable in your lib folder by flushing the cache, etc.
Then run your generator like this ...
php doctrine:build-forms --generator-class='myFormGenerator'
I have not tried any of the above, but the theory sounds, I think ...
Take a look at the following files to find out how I got this:
lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildFormsTask.class.php lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
source share