Hi Jon, On 8 Aug., 21:14, Jonathan Wage <[email protected]> wrote: > Since it uses PDO and mysql_query() uses a connection resource created from > mysql_connect(), you could not use mysql_query(). You could retrieve the PDO > connection though and issue the SQL query through that. Does it have to be > mysql_query()? >
Maybe not, perhaps using PDO is sufficent. My use case is hunting down a bug introduced by the update to sf 1.2.8 which now includes Doctrine 1.0.10. What's the preferred way to retrieve the current PDO instance from Doctrine in a task or unit test? Thanks, Klemens > - Jon > > > > On Sat, Aug 8, 2009 at 2:05 PM, Gábor Fási <[email protected]> wrote: > > > You might be looking for Doctrine_RawSql > >http://www.doctrine-project.org/documentation/manual/1_1/en/native-sql > > > On Sat, Aug 8, 2009 at 21:01, klemens_u<[email protected]> wrote: > > > > Hi, > > > > I'm using symfony 1.2 with Doctrine 1.0. > > > > I'd like to do a raw mysql query using mysql_query() or mysqli in a > > > symfony task. > > > Is there a way to get the connection through Doctrine to use the > > > configured database for the given environment? > > > > Thanks, Klemens > > -- > Jonathan H. Wage (+1 415 992 5468) > Open Source Software Developer & Evangelist > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > You can contact Jonathan about Doctrine, Symfony and Open-Source or for > training, consulting, application development, or business related questions > at [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
