You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really know how to create a PR, and I don't event know if my solution is the best way.
Q
A
BC Break
no
Version
2.6.3
Summary
After creating the following table in my DB
CREATE TABLE `unicorn` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(40) NOT NULL COMMENT 'enter a "comment" here'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
I try to import the mapping and generate getters/setters.
The following exception appears
In AnnotationException.php line 42:
[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_CURLY_B
RACES, got 'comment' at position 122 in property App\Entity\Unicorn::$name
Because the annotation generated for the 'name' field is as :
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 :
The text was updated successfully, but these errors were encountered: