Hi Stereo,

The sfSimpleForum plugin requires the sfGuardPlugin to be installed in your
computer, so you will need to follow the installation steps described in
http://trac.symfony-project.com/trac/wiki/sfGuardPlugin prior to installing
sfSimpleForumPlugin. If you do so, you don't have to hack the schema for the
forum plugin to work.

As for the sfSimpleBlog plugin, it is made to work with sfGuard but also
other user management utility. Before r4821, you need to copy the bundled
config/sfBlogPlugin.yml.sample into your app's config/sfBlogPlugin.yml for
the model generation to work. After this release (current trunk version of
the plugin), the default values of the schema use sfGuard's table names, so
you don't even need to add the default configuration.

Cheers,

François

-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED]
De la part de Stereo
Envoyé : jeudi 2 août 2007 18:09
À : symfony users
Objet : [symfony-users] Re: sfSimpleForumPlugin


Thank you Alexander! I found that I could use your solution to combine both
schema files for sfGuard and sfSimpleForum into one file and it worked. Then
I ran into the problem where if when I wanted to test out the sfSimpleBlog
plugin, I no longer had the option of duplicating the sfGuard schema into
that schema as well. The main problem I realized was this issue of having
foreign keys across different schemas... once I

So, for anyone having a similar problem with the error:

"Attempt to set foreign key to nonexistent table"

I found that I had to set propel.packageObjectModel to true in my
propel.ini:

propel.targetPackage                 = lib.model
propel.packageObjectModel        = true

That, along with verifying that each schema file was part of the
xxx.lib.model package, did the trick.

Thank you!

Helpful resources found along the way:
http://www.symfony-project.com/forum/index.php/m/31261/
http://www.symfony-project.com/snippets/snippet/170 (not needed if the
solution found in the forum works)




On Aug 2, 6:09 am, Alexander Deruwe <[EMAIL PROTECTED]> wrote:
> On 02 Aug 2007, at 00:40, Stereo wrote:
>
> > [propel-sql] Processing: generated-schema.xml [propel-sql] 
> > Processing: generated-sfGuardPlugin-schema.xml
> > [propel-sql] Processing: generated-sfSimpleForumPlugin-schema.xml
> > Execution of target "sql-template" failed for the following reason: 
> > /
> > usr/local/php5/lib/php/symfony/vendor/propel-generator/build-
> > propel.xml:187:1: ERROR!! Attempt to set foreign key to nonexistent 
> > table, sf_guard_user!
> > [phingcall] /usr/local/php5/lib/php/symfony/vendor/propel-generator/
> > build-propel.xml:187:1: ERROR!! Attempt to set foreign key to 
> > nonexistent table, sf_guard_user!
>
> Add the following to your schema.yml:
>
> propel:
>    _attributes: { package: "plugins.sfGuardPlugin.lib.model" }
>    sf_guard_user:
>      _attributes: { phpName: sfGuardUser }
>      id:
>
> propel:
>    << your own schema goes here >>
>
> Now you can link to sf_guard_user and 'propel-build-all' should work 
> just fine.
>
> Cheers,
>
> Alexander





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