logo       

[symfony-users] Re: Symfony+Doctrine+PGSQL: msg#00843

symfony-users

Subject: [symfony-users] Re: Symfony+Doctrine+PGSQL


Just specify the correct DSN and you should be fine. The pgsql dsn has
a different format than the mysql one, it looks like this:
pgsql:host=hostname;dbname=databasename;user=username;password=thepassword

2009/7/29 Guelmis LÃzara MartÃnez RamÃrez <guelmismr@xxxxxxxxxxxxxxxxxx>:
>
> Hi:
> ÂI have been trying to change the sfPropelPlugin to the sfDoctrinePlugin, I
> have found many references on the web but they are headed to mysql, etc, but
> I havenÂt found anything for pgsql, so I need an example, a base, that works.
>
> This is my ProjectConfiguration class
>
> class ProjectConfiguration extends sfProjectConfiguration
> {
> public function setup()
> {
> $this->enablePlugins('sfDoctrinePlugin');
> $this->disablePlugins('sfPropelPlugin');
>
> }
> }
>
> So Doctrine is already working, when I execute >>symfony list doctrine, it
> works ok, but from there I don't know how to make it work with pgsql, so
> please if anyone has an example of symfony 1.2.8, with Doctrine as ORM and
> pgsql please send it to me, or please post it.
>
> Thanks ins advance, sorry if my english isn't perfect.
>
> --
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise