You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: security/guard_authentication.rst
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,13 @@ property they use to access their account via the API::
71
71
// more getters/setters
72
72
}
73
73
74
+
.. caution::
75
+
76
+
In the example above, the table name is ``user``. This is a reserved SQL
77
+
keyword and `must be quoted with backticks`_ in Doctrine to avoid errors.
78
+
You might also change the table name (e.g. with ``app_users``) to solve
79
+
this issue.
80
+
74
81
.. tip::
75
82
76
83
This User doesn't have a password, but you can add a ``password`` property if
@@ -587,3 +594,5 @@ Frequently Asked Questions
587
594
to actually authenticate the user. You can continue doing that (see previous
588
595
question) or use the ``User`` object from FOSUserBundle and create your own
589
596
authenticator(s) (just like in this article).
597
+
598
+
.. _`must be quoted with backticks`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#quoting-reserved-words
0 commit comments