Symfony Doctrine skeleton files

*爱你&永不变心* 提交于 2019-12-24 21:57:46

问题


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...



来源:https://stackoverflow.com/questions/4000351/symfony-doctrine-skeleton-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!