how to override FOSUserBundle's schema file in other bundle

核能气质少年 提交于 2019-12-23 21:47:29

问题


I'm working in symfony 2.5 with propel for my project.

I need to add a behavior to fos_user table so I need a way to override the original schema file in my src/ directory. Defining my project as a child of FOSUserBundle does work but this is not what I want.

Is there another way?


回答1:


you can copy the original schema file to your app directory
and add the behavior you need. The way is exactly like overriding
any twig templates from vendors.


来源:https://stackoverflow.com/questions/26376736/how-to-override-fosuserbundles-schema-file-in-other-bundle

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