Just as a follow up for anyone have this problem here goes the result
of my testing and what I did to pass this hurdle.

I was using Propel, and for some reason, when saving the user, it
deleted the profile. This is a bug in sfGuardPlugin. I found that
inside the plugin, it was doing a mergeForm(), so the profile form was
not showing, thus, when saving the user, the profile was empty. I
attempted to change it to embedForm() which showed the form, but when
saving it would issue an insert into the DB twice, so the second time
would fail. I tried to locate the problem but since I don't have much
time in this project, I decided to migrate to Doctrine where there was
more information. After some pains in migrating, it is working as
expected.

Sorry I did not find the actual solution to the problem.

Pablo

On Oct 6, 6:00 pm, Pablo Godel <[email protected]> wrote:
> I am using sfGuardPlugin to manage users in an application. I created
> sfGuardUserProfile to add fields like name, email, website, etc.
>
> It all works nicely, but when I update sfGuardUser through the admin
> generator, it clears sfGuardUserProfile. I see the following in the sql log:
>
> 629 Query    UPDATE sf_guard_user_profile SET `FIRST_NAME`='',
> `UPDATED_AT`=NULL WHERE sf_guard_user_profile.ID=1
> 629 Query    UPDATE sf_guard_user SET `IS_ACTIVE`=1 WHERE sf_guard_user.ID=1
>
> Is there a way to avoid this behavor?
>
> Thanks
> Pablo Godel
--~--~---------~--~----~------------~-------~--~----~
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