symfony2admingenerator / symfony2-admingenerator-demo-edition

Symfony project demo for GeneratorBundle features.
MIT License
8 stars 3 forks source link

Error in post edit #13

Closed cedriclombardot closed 9 years ago

cedriclombardot commented 9 years ago

I got the error message The form's view data is expected to be of type scalar, array or an instance of \ArrayAccess, but is an instance of class Admingenerator\DoctrineOrmDemoBundle\Entity\Tag. You can avoid this error by setting the "data_class" option to "Admingenerator\DoctrineOrmDemoBundle\Entity\Tag" or by adding a view transformer that transforms an instance of class Admingenerator\DoctrineOrmDemoBundle\Entity\Tag to scalar, array or an instance of \ArrayAccess. executing http://generator.dev/app_dev.php/doctrine-orm/post/1/edit