Search code examples
symfonypropel

how to override FOSUserBundle's schema file in other bundle


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?


Solution

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