문제

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