Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Entity with property named "notes" will cause extract error #33

Open
webmasterMeyers opened this issue Apr 8, 2019 · 0 comments
Open

Comments

@webmasterMeyers
Copy link

webmasterMeyers commented Apr 8, 2019

I was not sure if this should go here or under "symfony-bundle"

I had 3 entities with a property name of notes and a formType with $builder->add('notes'); this would cause bin/console translation:extract to fail with the error:

Warning: DOMElement::setAttribute() expects parameter 2 to be string, array given

Renaming the property to note removed this error. I think simply adding a "notes" form element will cause the error. (not tested).

The file is vendor/php-translation/symfony-storage/src/Dumper/Port/SymfonyPort.php line 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant