I have been mostly using sfWidgetFormSelectDoubleList to edit my m2m
relations and I am quite happy with it except when the relation table
has extra fields than the foreign keys.
An example would be for the relation table:
grouping
group_id:
type: integer(4)
primary: true
item_id:
type: integer(4)
primary: true
comments:
type: clob
show_thumb:
type: boolean
With sfWidgetFormSelectDoubleList, I can associate items and groups,
but I cannot edit the extra fields in the association.
What I have been doing is use AJAX to dynamically generate or remove
forms to add, modify or remove relationships.
It works good, but have some drawbacks:
- It is quite tedious to program and maintain
- It is not integrated with the form framework or the admin generator
except that it can be placed in the footer of an admin generated form.
- It requires that the relations are outside of the main form and that
the main form be saved first so that the relations can be edited.
Is this something that could be part of Symfony in the future or if
provided in a plugin widget, what would be the best approach for it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---