Unfortunately I have several plugins and some of them uses propel. I think that I'm not asking anything too strange. Is usual that you have several applications and only one user for all. For instance, I have one application in asp.net and another in symfony that have the same users, and share the users database.
I've looked the way propel generates the form classes, and as far as I understood they get the propel connection for ALL the plugins, and you can change the connection (via the --connection parameter), but is for all the plugins. There is no way to assign to an specific plugin one specific connection? Anyone knows if in symfony 1.4 is this possible? Thanks for your help, Manel On 19 mar, 13:31, Manel <[email protected]> wrote: > Unfortunately I have several plugins and some of them uses propel. > > I think that I'm not asking anything too strange. Is usual that you > have several applications and only one user for all. For instance, I > have one application in asp.net and another in symfony that have the > same users, and share the users database. > > I've looked the way propel generates the form classes, and as far as I > understood they get the propel connection for ALL the plugins, and you > can change the connection (via the --connection parameter), but is for > all the plugins. > > There is no way to assign to an specific plugin one specific > connection? > > Anyone knows if in symfony 1.4 is this possible? > > Thanks for your help, > > Manel > > On 19 mar, 08:46, Frank Stelzer <[email protected]> wrote: > > > Mmh, i think the only chance getting this working is the way of > > defining a different db connection for all of your custom schema. > > So the "propel" connection would only point to the guard schema and > > your "project" schema to the rest. > > This would only work, when you do not use other plugins, which are > > using the propel connection by default. > > > Frank > > > Am 17.03.2010 um 16:32 schrieb Manel: > > > > I want the data of the sfGuardUser plugin in a database that is not > > > the "propel" database. I want this because I will have several > > > applications in diferent servers, but I want to unify the user > > > credentials for all the applications. > > > > I've defined 2 databases in databases.yml: > > > > all: > > > propel: > > > class: sfPropelDatabase > > > param: > > > classname: DebugPDO > > > dsn: 'mysql:dbname=dbdata;host=localhost' > > > username: datauser > > > password: XXXX > > > > dbuser: > > > class: sfPropelDatabase > > > param: > > > classname: PropelPDO > > > dsn: 'mysql:dbname=dbuser;host=remote_server' > > > username: sfGuardUser > > > password: XXXX > > > > And I've modified the schema.yml of the plugin dfGuardUser to reflect > > > the new database: > > > > dbuser: > > > _attributes: { package: plugins.sfGuardPlugin.lib.model } > > > > sf_guard_group: > > > _attributes: { phpName: sfGuardGroup } > > > id: ~ > > > name: { type: varchar, size: 255, required: true, index: > > > unique } > > > description: { type: longvarchar } > > > > ... > > > > When I try to do a symfony propel:build-forms I get the following > > > error: > > > >>> propel generating form classes > > > > Cannot fetch TableMap for undefined table: sf_guard_user. Make sure > > > you have the static MapBuilder registration code after your peer stub > > > class definition. > > > > If I return the schema.yml of sfGuardUser to the original database > > > (propel) all runs fine, but I get the tables in the same database. > > > > I searched for this problems in the groups and in the symfony website > > > but I'm unable to find a solution. > > > > I'm using symfony 1.2.12 on a Linux box. > > > > Thanks for your help. > > > > -- > > > If you want to report a vulnerability issue on symfony, please send > > > it to security at symfony-project.com > > > > 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
