Skip to content

Quote “user” table in example code with backticks #9551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Quote “user” table in example code with backticks
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.
  • Loading branch information
msheakoski committed Apr 4, 2018
commit 4ee43d9ca9f1630222bc77f200845d54cfbd43ea
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