I have few problems with setting PropelORM to work with multiple databases. I couldn't find anything useful in the documentation.
Generating schemas from multiple databases
I prefer to make a change to database schema first and then run
$ propel-gen . reverse
to get schema.xml. What if my system consists of more then one database? Can it generate multiple schemas? I know from the documentation buildtime-conf.xml has to be created but it doesn't do anything for me.
Generating classes
Let's say I created to different schemas blog.schema.xml and platform.schema.xml. Is it possible to:
have a different class prefix for each schema? In build.properties I can set
propel.classPrefix
but that will work globally for each schema.have a different project name for each schema? Again in the build.properties I can set
propel.project
and that will create a certain directory in classes directory. Right now all classes will go to the same place. If I will use the same table name in both schemas one class will overwrite the other.
The solution I can come on my own is to have a 2 different directories setup for a certain database however I would prefer more elegant solution.