Вопрос

I am trying to add a re-captcha in my forms using GenemuFormBundle, I followed all the steps in the documentation but I got this error when I try to load the form:

Expected argument of type "string or Symfony\Component\PropertyAccess\PropertyPath", "boolean" given

I don't want to store the captcha in the database, thats why I am setting:

->add('captcha', 'genemu_recaptcha', array("property_path" => false));

Am I doing something wrong?

Is there an example for the view code?

Это было полезно?

Решение

Since property_path is deprecated, you should use mapped option:

->add('captcha', 'genemu_recaptcha', array("mapped" => false));
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top