Hi (again) Am I wrong if I do this :
doctrine:drop-db conn1 doctrine:build-db conn1 doctrine:build-sql => insert manually the sql in the DB1 (without the tables for DB2) doctrine:data-load => for the data in DB1 build --all is great but a bit violent... :) On 5 mai, 11:17, jaubry <[email protected]> wrote: > Hi, > I don't know how to properly deal with something in symfony. > > Let me explain : > > I have my main project P1 which connects to a database DB1. I have > defined a schema to declare all the objets for my DB1. > This project P1 has to connect to a database DB2 somewhere on my farm. > This DB2 already exists and CANNOT be regenerated. And it would be > great to use the model to request in DB2. > > I have specified my 2 connections (conn1 and conn2) in my > databases.yml. > > In my schema for DB1, all my tables have a "connection: conn1" > > I have written my own classes for objects and tables in my DB2. > I have put them in lib/model, lib/form > > But when I make a "build --all", the DB2 is dropped and recreated. > How can I avoid that ? > > Or else, I know that I can use Doctrine_Query with a select instead of > defining a model. But POO is great :)) > > Thanks. > > Jerome > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
