Thanks Gabor, no I want to bypass Doctrine completely and only use the database connection (parameters). I really want to use the native PHP mysql functions.
With propel I can do something similar using: // get database connection for direct mysql statements $databaseManager = new sfDatabaseManager(); $databaseManager->initialize(); $connection = Propel::getConnection(); $q = "SELECT * FROM my_table"; $r = mysql_query($q); :-) Klemens On 8 Aug., 21:05, Gábor Fási <[email protected]> wrote: > You might be looking for > Doctrine_RawSqlhttp://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 > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
