Symfony Doctrine skeleton files

2019-08-30 00:54发布

问题:

I'm using Symfony 1.4 with the Doctrine 1.2 plugin.

I would like to add some function to the Doctrine auto-generated models files (*Base.class.php). Thoses file are normally generated using "./symfony doctrine:build-model" command from the CLI. I know Symfony have a system of skeleton for every file generated from the CLI but I habe absolutely no idea how to modify specific Doctrine skeletons files.

I've looked a the documentation but didn't find any hints. Is this even possible ?

回答1:

Searching for 'auto-generated by' in symfony, I found this file : lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Import/Builder.php , which does not seem to use any skeleton system at all... condolences...