Tristan, You don't have the relation already defined, do you? But
you're probably using sfDoctrineGuard 5.0.0, right?
redeclare id field in your schema.yml, or use "for_sfDoctrineGuard5"
branch from repo.


On 29 Lip, 22:04, Tristan <tristan.bessou...@gmail.com> wrote:
> Ok, it seems that i have two declaration of sfGuardUserProfile,
>
> so i deleted mine, and kept the one from the plugin (merging my
> attributes)
>
> SQLSTATE[HY000]: General error: 1005 Can't create table
> 'mywebsite.#sql-7d_7b' (errno: 150).
>
> Failing Query: "ALTER TABLE sf_guard_user_profile ADD CONSTRAINT
> sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id)
> REFERENCES sf_guard_user(id) ON DELETE CASCADE".
>
>  Failing Query: ALTER TABLE sf_guard_user_profile ADD CONSTRAINT
> sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id)
> REFERENCES sf_guard_user(id) ON DELETE CASCADE

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to