mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
"doctrine:mapping:import" does not escape quotes in field comments #6264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guillaume-a on GitHub (Jun 27, 2019).
Originally assigned to: @lcobucci on GitHub.
Bug Report
Hi, I made this repo to reproduce easily this bug : https://github.com/guillaume-a/doctrine-orm-7763
I don't really know how to create a PR, and I don't event know if my solution is the best way.
Summary
After creating the following table in my DB
I try to import the mapping and generate getters/setters.
The following exception appears
Because the annotation generated for the 'name' field is as :
How to reproduce
Follow README.md from https://github.com/guillaume-a/doctrine-orm-7763
Expected behavior
We expected quotes to be escaped or doubled like so :
@guillaume-a commented on GitHub (Jun 27, 2019):
made this PR : https://github.com/doctrine/orm/pull/7764
@lcobucci commented on GitHub (Oct 2, 2019):
Handled by #7764. Thanks @guillaume-a 👍