如何在其他包中覆盖 FOSUserBundle 的架构文件 [英] how to override FOSUserBundle's schema file in other bundle

查看:42
本文介绍了如何在其他包中覆盖 FOSUserBundle 的架构文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 symfony 2.5 为我的项目工作.

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

我需要向 fos_user 表添加一个行为,所以我需要一种方法来覆盖我的 src/ 目录中的原始架构文件.将我的项目定义为 FOSUserBundle 的子项确实有效,但这不是我想要的.

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.

还有别的方法吗?

推荐答案

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.

这篇关于如何在其他包中覆盖 FOSUserBundle 的架构文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆