Join GitHub today
Remove single quotes from namespace #10520
I was trying to migrate and old database and found that using this command with single quotes generates the entities but the files generated contains the namespace single-quoted:
<?php namespace 'App\Entity'; ...
Removing the single quotes when running the command solves the problem.
@juanmiguelbesada thanks for reporting this issue. We recently changed this to fix some issues reported by another user.
I've just run this command in the Symfony Demo app:
$ php bin/console doctrine:mapping:import 'App\Entity' annotation --path=src/Entity
And the generated code didn't contain the single quotes:
Could you please tell me which operating system and console application do you use? Thanks!