[symfony-users] How to use doctrine tasks only for a given connection?

2009-12-11 Thread Nicolas Perriault
Hi, I've just noticed the --connection option has been removed from the doctrine:* tasks family since symfony 1.3 (and 1.4 as well), so I wonder what's the recommended way to operate on a particular connection now. Any hint? ++ -- Nicolas Perriault http://prendreuncafe.com -

Re: [symfony-users] How to use doctrine tasks only for a given connection?

2009-12-11 Thread Thomas Rabaix
Connections are bound to an environment, so I guess just use the --env option. On Fri, Dec 11, 2009 at 10:32 AM, Nicolas Perriault nperria...@gmail.comwrote: Hi, I've just noticed the --connection option has been removed from the doctrine:* tasks family since symfony 1.3 (and 1.4 as well),

Re: [symfony-users] How to use doctrine tasks only for a given connection?

2009-12-11 Thread Nicolas Perriault
On Fri, Dec 11, 2009 at 10:52 AM, Thomas Rabaix thomas.rab...@gmail.com wrote: Connections are bound to an environment, so I guess just use the --env option. I don't think so, just imagine you have a connection for a given third-part software which you just want to read the database from: if

Re: [symfony-users] How to use doctrine tasks only for a given connection?

2009-12-11 Thread Thomas Rabaix
If your third party software need a specific connection, just define the connection in 'all' section with a specific name. Then just get the connection with the doctrine manager. So you can have : - all: global connections - prod: prod specific connections - dev: dev specific

Re: [symfony-users] How to use doctrine tasks only for a given connection?

2009-12-11 Thread Nicolas Perriault
On Fri, Dec 11, 2009 at 2:59 PM, Thomas Rabaix thomas.rab...@gmail.com wrote: If your third party software need a specific connection, just define the connection in 'all' section with a specific name. Then just get the connection with the doctrine manager. So you can have : all: global