Hello!

I have 3 models: client, person and client_person:

  person:
    id:                 ~
    name:               { type: varchar(100), required: true, index:
unique }
    ...

  client:
    id:                 ~
    name:                 { type: varchar(255) }
    ....

  client_person:
    client_id:          { type: integer, foreignTable: client,
foreignReference: id, required: true }
    person_id:            { type: integer, foreignTable: person,
foreignReference: id, required: true}

What I want: in the admin generator, when I edit the person to include
a field "client" and then when saving (in doSave) to update both
tables (person and client_person) in order to create the person-client
relationship automatically, without the user having to input a row in
the client_person module. Any hints on how I can do this?

Thank you!

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

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.

Reply via email to