Symfony 1.4 with multiple apps and different databases

前端 未结 1 1501
清酒与你
清酒与你 2021-01-16 05:42

I have an important Symfony project, in which I have different apps. I\'d like to have different databases, one for each apps.

I\'ve find that I can have multiple da

1条回答
  •  遥遥无期
    2021-01-16 05:52

    You can use the "package" parameter in your schema like so:

    Model:
      connection:                           doctrine
      package:                              your_package
      tableName:                            model
      columns:
        ...
    

    0 讨论(0)
提交回复
热议问题