Let's see this example, 2 objects:

Artist:
  id:
  user_id:
  discographie:  longvarchar

User:
  id:
  name: varchar(255)

Ok, let's imagine, we have a form UserArtistForm.class.php, extending
sfPropelForm for the object User, and with an embeded form Artist.

I found this excellent article :
http://www.symfony-project.org/blog/2008/11/10/call-the-expert-nested-forms-a-real-implementation
Ok, It works fine for edit action, but what about create action ?

What is the best way to have my "user_id" field, automaticaly set to
the user just created ?
I'd like to have a hook between the base form save, and the embeded
forms save, to give my artist object the id of the user just created.

Any ideas, suggestions ?
Thx

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to