Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 172623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:11:56+00:00 2026-05-11T13:11:56+00:00

I am using Propel as my DAL for my Symfony project. I can’t seem

  • 0

I am using Propel as my DAL for my Symfony project. I can’t seem to get my application to work across two or more databases.

Here’s my schema.yml:

db1:   lkp_User:     pk_User:                     { type: integer, required: true, primaryKey: true, autoIncrement: true }     UserName:                    { type: varchar(45), required: true }     Password:                    longvarchar     _uniques:       Unique:                    [ UserName ]  db2:   tesco:     Id:                  { type: integer, required: true, primaryKey: true, autoIncrement: true }     Name:                { type: varchar(45), required: true }     Description:         longvarchar 

And here’s the databases.yml:

dev:   db1:     param:       classname: DebugPDO test:   db1:     param:       classname: DebugPDO all:   db1:     class: sfPropelDatabase     param:       classname: PropelPDO       dsn: 'mysql:dbname=bpodb;host=localhost'   #where the db is located       username: root       password: #pass       encoding: utf8       persistent: true       pooling: true     db2:     class: sfPropelDatabase     param:       classname: PropelPDO       dsn: 'mysql:dbname=mystore2;host=localhost'   #where the db is located       username: root       password: #pass       encoding: utf8       persistent: true       pooling: true 

When I call php symfony propel-build-model, only db1 is generated, db2 is not.

Any idea how to fix this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:11:57+00:00Added an answer on May 11, 2026 at 1:11 pm

    I got this issue working! The most important thing is you must name your schema according to %dbname%.schema.yml. In this way Symfony will be able to assign the ymls to the correct database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we using symfony 1.0. We have an module work with Propel objects. The sql-querys
I am using Propel 1.2 in a Symfony 1.0 project, with PostgreSQL db. I
I'm using v1.3 of the Propel PHP framework for an application, and I can't
I can't seem to find any documentation on Symfony2 forms when using Propel ORM.
I have a problem on a symfony 1.1 project with propel 1.3. I'm using
I am trying to get the propel-gen reverse command working, but just can't seem
First post here... I normally develop using PHP and Symfony with Propel and ActionScript
I'm using symfony 1.4, and am fairly new to propel. I'm looking at an
I am using SF 1.4.8 with Propel ORM for a project. I have an
I am using Symfony 1.4 and Propel(ORM), i want to execute SQL query (

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.