hello

I am trying to reimplement the old Doctrine transformers after
upgrading from PR5, but there seems to be a contradiction with the
interface, reverseTransform is called with 2 arguments.

   // Symfony\Component\Form\Field
   protected function reverseTransform($value)
   {
           return '' === $value ? null : $value;
       }
       return $this->valueTransformer->reverseTransform($value, $this->data);
   }

but the interface only allows one:

   // Symfony\Component\Form\ValueTransformer\ValueTransformerInterface
   function reverseTransform($value);

This is a problem for the CollectionToChoiceTransformer as it relies
on the second
argument being an instance of Collection.

If the interface is correct, how can the transformers access the form
data object?

thanks

dan

-- 
Dan Leech

Web Developer
www.dantleech.com

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