the docs and the code went out of sync in that regard, i am not sure how you configure the value transfomer currently but it was a flaw that the setValueTransformer method was public before.
Fields are Immutable, so there should now be some way to set it via the constructor. On Fri, 2010-10-29 at 06:37 -0700, Derek ROTH wrote: > Hi, > I am following the documentation here, using the latest sandbox > (downloaded it today from github): > http://docs.symfony-reloaded.org/master/guides/doctrine/orm/form.html > > And I get this error: > Fatal error: Call to protected method Symfony\Component\Form > \Field::setValueTransformer() > > Changing the function to be public solves the problem, but I don't > know if it is the adequate solution. > > There seems to be a little documentation bug, too. The code in the doc > is: > > $form->addField($field); > But this method is not defined, I replaced it with: > $form->add($field); > > But as soon as I add this line, I can only get a blank page, loading > for a while. The field I am trying to add is my only ChoiceField bound > to a Collection of Doctrine entities, so I think the bug is related to > DoctrineBundle. > -- 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
