From 4ee43d9ca9f1630222bc77f200845d54cfbd43ea Mon Sep 17 00:00:00 2001 From: Michael Sheakoski Date: Wed, 4 Apr 2018 12:39:29 -0400 Subject: [PATCH] =?UTF-8?q?Quote=20=E2=80=9Cuser=E2=80=9D=20table=20in=20e?= =?UTF-8?q?xample=20code=20with=20backticks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Naming the table “user” without backtick quoting will trigger an error for anybody that copy/pastes the code because “USER” is a SQL reserved word. See #9541 for more details. --- security/guard_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index a5b1f86a752..b3e33087151 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -27,7 +27,7 @@ property they use to access their account via the API:: /** * @ORM\Entity - * @ORM\Table(name="user") + * @ORM\Table(name="`user`") */ class User implements UserInterface {