I have an entity `Offer` with a 1:M property to `PropertyGroups` with
a 1:M property to `Property`.

Here's a visual of what I'm trying to accomplish: http://o7.no/zRzWzO

In my OfferType, I have:

->add('parameterGroups', 'collection', array(
    'type'         => new OfferParameterType(),
    'allow_add'    => true,
    'allow_delete' => true
))


In OfferParameterParameterType I have:

$builder->add('parameters', 'collection', array(
    'label'         => 'Parameters',
    'type'          => new OfferParameterParameterType(),
    'allow_add'     => true,
    'allow_delete'  => true
));


In OfferParameterParameterType I have:

$builder
    ->add('field', 'choice', array(
        'choices' => OfferParameterNew::$fieldChoices
    ))
    ->add('type', 'choice', array(
        'choices' => OfferParameterNew::$typeChoices
    ))
    ->add('value', 'text', array(
        'max_length' => null
    ))
;



My second prototype gets completely messed up.  How can I achieve what
I'm wanting?


** The above is an example.. Offer really has a $parameterGroups field
which is an array that I use transformers to correctly display to my
form types. **

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

Reply via email to