質問

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