Dear Dustin, i'd like to share what i figured out when using sfPropelPlugin:
First of all, i've CO the latest svn 9312. I didn't succeed to do it via "symfony plugin:install ...", i always get the error: "Unable to get information for plugin "sfPropelPlugin": File http://plugins.symfony-project.org:80/REST/r/sfpropelplugin/allreleases.xml not valid (received: HTTP/1.0 404 Not found)" I got the same error as Ady and after using "datasource" it almost worked. Almost, because i always get a PHP warning: PDO::__construct(): SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes in .../plugins/ sfPropelPlugin/lib/vendor/propel/util/DebugPDO.php on line 80. This is only a warning and i successfully get data out of my database. I'm using PHP 5.2.0 and Postgres 8.1. I checked auf this line 80 in DebugPDO and did a print_r($driver_options). What i get is an "Array( [12] => )". If i unset $driver_options with "$driver_options = array()" before the call to parent constructor, everything is fine. Hope this helps. And thx for your work, Michael On 25 Mai, 04:11, Dustin Whittle <[EMAIL PROTECTED]> wrote: > Ady, > > I will investigate the need for the datasource param.. It should work > without (iirc). > > - Dustin > > On 5/24/08 11:40 AM, "Ady" <[EMAIL PROTECTED]> wrote: > > > > > Ok - not sure if this was the way it was intended but I find that when > > I add a datasource param everything is good, so: > > > classname: PropelPDO > > dsn: ... > > username: .... > > password: .... > > datasource: propel > > > On May 24, 1:47 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > >> I'm also here with only one database ;o( > > >> I tried your plugin yesterday and got also this issue. Everything > >> before worked fine (i mean symfony's own propel). I followed exactly > >> your docs, checked cached yml files (settings are there), checked > >> everything, but this message still appear. > > >> Michael > > >> On 24 Mai, 19:19, Ady <[EMAIL PROTECTED]> wrote: > > >>> Dustin - wonder if you could help me with this issue I'm having with > >>> multiple DB config - the error I see is this: > > >>> 'No connection information in your runtime configuration file for > >>> datasource [xxxDB]' > > >>> database.yml: > > >>> all: > >>> xxxDB: > >>> class: sfPropelDatabase > >>> param: > >>> classname: PropelPDO > >>> dsn: mysql:dbname=xxxDB;host=xxxDB;port=3308 > >>> username: root > >>> password: xxx > > >>> propel: > >>> class: sfPropelDatabase > >>> param: > >>> classname: PropelPDO > >>> dsn: mysql:dbname=xxxxDB;host=xxxDB;port=3306 > >>> username: root > >>> password: xxx > > >>> It seems to pick up the last config as default which is why I had to > >>> set the propel config at the end which is a problem as well. > > >>> Thanks in advance > >>> A --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
