moins52
moins52

Reputation: 744

Symfony upgrade from 2.2 to 2.3 Expected argument of type "string or Symfony\Component\PropertyAccess\PropertyPath", "boolean" given

I'm trying to upgrade from Symfony application from 2.2 to 2.3 and I get this error on some pages. The problem seems to occur with forms.

I did what's writen here : https://github.com/symfony/symfony-standard/blob/master/UPGRADE-2.3.md

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

Thanks for help!

Upvotes: 3

Views: 1218

Answers (1)

moins52
moins52

Reputation: 744

In the form builder 'property_path' => false should be replaced by 'mapped' => false

Upvotes: 10

Related Questions