From ed5009dad8911e4fc26404177e0d86ed5270d1ab Mon Sep 17 00:00:00 2001 From: vindby23 Date: Sat, 11 Aug 2018 14:38:08 +0530 Subject: [PATCH 1/2] Resolve T_STRING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error on namespace. “identifier (T_STRING)”' or `“\\ (T_NS_SEPARATOR)”' in --- doctrine/reverse_engineering.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doctrine/reverse_engineering.rst b/doctrine/reverse_engineering.rst index 6c4d7b10612..614dcb9d6fb 100644 --- a/doctrine/reverse_engineering.rst +++ b/doctrine/reverse_engineering.rst @@ -56,7 +56,7 @@ table fields. .. code-block:: terminal - $ php bin/console doctrine:mapping:import App\\Entity annotation --path=src/Entity + $ php bin/console doctrine:mapping:import App\Entity annotation --path=src/Entity This command line tool asks Doctrine to introspect the database and generate new PHP classes with annotation metadata into ``src/Entity``. This generates two @@ -68,7 +68,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``. .. code-block:: terminal - $ php bin/console doctrine:mapping:import App\\Entity xml --path=config/doctrine + $ php bin/console doctrine:mapping:import App\Entity xml --path=config/doctrine Generating the Getters & Setters or PHP Classes ----------------------------------------------- From 26ccc3b225c289339b1c09fce3f2afa78c9ad8ce Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 8 Oct 2018 11:33:34 +0200 Subject: [PATCH 2/2] Wrap the entity namespace in single quotes --- doctrine/reverse_engineering.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doctrine/reverse_engineering.rst b/doctrine/reverse_engineering.rst index 614dcb9d6fb..5845c4e8485 100644 --- a/doctrine/reverse_engineering.rst +++ b/doctrine/reverse_engineering.rst @@ -56,7 +56,7 @@ table fields. .. code-block:: terminal - $ php bin/console doctrine:mapping:import App\Entity annotation --path=src/Entity + $ php bin/console doctrine:mapping:import 'App\Entity' annotation --path=src/Entity This command line tool asks Doctrine to introspect the database and generate new PHP classes with annotation metadata into ``src/Entity``. This generates two @@ -68,7 +68,7 @@ files: ``BlogPost.php`` and ``BlogComment.php``. .. code-block:: terminal - $ php bin/console doctrine:mapping:import App\Entity xml --path=config/doctrine + $ php bin/console doctrine:mapping:import 'App\Entity' xml --path=config/doctrine Generating the Getters & Setters or PHP Classes -----------------------------------------------