Hi,
when we use the CollectionValidator we can validate an array like:

array(
  'option1' => 'value',
  'options2' => 'value2'
)

now, i want to use a multi-dimensional array like this:

array(
  0 => array(
    'option1' => 'value',
    'options2' => 'value2'
 ),
 1 => array(
    'option1' => 'value111',
    'options2' => 'value2222'
 )
)

I know i can replace it with a one-to-many relation, but i don't want
it for performance and simplicity.I think it would be a good idea to
add a "is_multiple"; or something like; parameter to the constraint to
validate multi-dimensional array.

Is it a good idea ?
or should i create a non persistent one-to-many relation (only for
validation) ?

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