Rapsys Git
/
userbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename user bundle route alias
[userbundle]
/
Entity
/
User.php
diff --git
a/Entity/User.php
b/Entity/User.php
index 68b0dcf1ee1d6baf1f8ccb3e8f6391970ac7a61e..7d15a367f358f08e7c44f83daba7af4b14b6e159 100644
(file)
--- a/
Entity/User.php
+++ b/
Entity/User.php
@@
-432,7
+432,7
@@
class User implements UserInterface, PasswordAuthenticatedUserInterface {
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an user instance
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an user instance
- if (($user = $eventArgs->get
Entity
()) instanceof User) {
+ if (($user = $eventArgs->get
Object
()) instanceof User) {
//Set updated value
$user->setUpdated(new \DateTime('now'));
}
//Set updated value
$user->setUpdated(new \DateTime('now'));
}