Skip to content

Commit 47010e9

Browse files
committed
Adding additional note about serialization and private properties
1 parent 50420d7 commit 47010e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/security.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,8 @@ as it implements this interface.
926926

927927
The user object will be serialized and saved in the session during requests,
928928
therefore it is recommended that you `implement the \Serializable interface`_
929-
in your user object.
929+
in your user object. This is especially important if your ``User`` class
930+
has a parent class with private properties.
930931

931932
Next, configure an ``entity`` user provider, and point it to your ``User``
932933
class:

0 commit comments

Comments
 (0)