Skip to content

Commit 6b7bb04

Browse files
committed
Merge remote branch 'origin/1.3.x'
2 parents 775449a + ff3f85b commit 6b7bb04

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Model/User.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ public function addRole($role)
149149
/**
150150
* Serializes the user.
151151
*
152-
* The serialized data have to contain the fields used by the equals method and the username.
152+
* The serialized data have to contain the fields used during check for
153+
* changes and the id.
153154
*
154155
* @return string
155156
*/
@@ -165,6 +166,10 @@ public function serialize()
165166
$this->credentialsExpired,
166167
$this->enabled,
167168
$this->id,
169+
$this->expiresAt,
170+
$this->credentialsExpireAt,
171+
$this->email,
172+
$this->emailCanonical,
168173
));
169174
}
170175

@@ -189,7 +194,11 @@ public function unserialize($serialized)
189194
$this->locked,
190195
$this->credentialsExpired,
191196
$this->enabled,
192-
$this->id
197+
$this->id,
198+
$this->expiresAt,
199+
$this->credentialsExpireAt,
200+
$this->email,
201+
$this->emailCanonical
193202
) = $data;
194203
}
195204

Resources/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ start:
118118

119119
.. code-block:: php-annotations
120120
121+
<?php
121122
// src/AppBundle/Entity/User.php
122123
123124
namespace AppBundle\Entity;
@@ -174,7 +175,7 @@ start:
174175
175176
.. caution::
176177

177-
``user`` is a reserved keyword in SQL so you cannot use it as table name.
178+
``user`` is a reserved keyword in the SQL standard. If you need to use reserved words, surround them with backticks, *e.g.* ``@ORM\Table(name="`user`")``
178179

179180
b) MongoDB User class
180181
.....................

Resources/translations/FOSUserBundle.pl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ resetting:
6666
flash:
6767
success: Hasło zostało zresetowane
6868
email:
69-
subject: Witaj %username%!
69+
subject: Resetowanie hasła
7070
message: |
7171
Cześć %username%!
7272

0 commit comments

Comments
 (0)