Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multiple connections #1970

Open
cruzprojects opened this issue Jun 19, 2023 · 2 comments
Open

Use multiple connections #1970

cruzprojects opened this issue Jun 19, 2023 · 2 comments

Comments

@cruzprojects
Copy link

How can I use more than one connection in the same php application using Propel2?
For example, one for MySql and other for PostgreSQL, both at the same time.

@mringler
Copy link
Contributor

The documentation has examples how to set up multiple connections. Then you define a database-element in schema.xml for each connection, they are bound to the connection via the name attribute. The archivable behvavior documentation has an example where a second connection is used for storing backups.
I have never used it myself, so I can't tell you how well it works. Feel free to share how it is going.

@floriankraemer
Copy link

@cruzprojects how is it going? Does it work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants