Hi,

seeing that someone decided to hijack my thread (no idea why), I shall
try again:

I have a (simplified) model

Template:
  columns:
    id: [ integer, primary, autoincrement ]
    name: [ varchar(40) ]
  relations:
    Exercises:
      class: Exercise
      local: id
      foreign: template_id
      type: many
      foreignAlias: Exercises

Exercise:
  columns:
    id: [ integer, primary, autoincrement ]
    name: [ varchar(40) ]
    template_id: [ integer ]
  relations:
    Template:
      local: template_id
      foreign: id
      type: one
    Measurements:
      class: Measurement
      local: id
      foreign: exercise_id
      type: many
      foreignAlias: Measurements

Measurement:
  columns:
    id: [ integer, primary, autoincrement ]
    name: [ varchar(40) ]
    exercise_id: [ integer ]
  relations:
    Exercise:
      local: exercise_id
      foreign: id
      type: many

Now, in TemplateForm, I embed an ExerciseForm for every Exercise
related to the template and have a new ExerciseForm. Every
ExerciseForm embeds a MeasurementForm for every Measurement associated
to the exercise and has an empty MeasurementForm for new entries.

Is it possible to delegate the binding of the embedded
MeasurementForms to the ExerciseForm or do I have to do everything in
the TemplateForm's bind() method?

Any comments are appreciated.

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