Skip to content

Commit

Permalink
Quote “user” table in example code with backticks
Browse files Browse the repository at this point in the history
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 symfony#9541 for more details.
  • Loading branch information
msheakoski authored and wouterj committed May 5, 2018
1 parent c873cfc commit 27efc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/guard_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 27efc38

Please sign in to comment.