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()?

- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to