Browse Source

Ajout de last_login sur UserModel

packProduct
Fab 3 years ago
parent
commit
bd66e7017c
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      Model/User/UserModel.php

+ 18
- 0
Model/User/UserModel.php View File

@@ -38,6 +38,11 @@ abstract class UserModel extends SovUserModel
*/
protected $favoriteMerchant;

/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $lastLogin;

/**
* @ORM\OneToMany(targetEntity="Lc\CaracoleBundle\Model\Address\AddressInterface", mappedBy="user", cascade={"persist"})
*/
@@ -122,6 +127,19 @@ abstract class UserModel extends SovUserModel
return $this;
}

public function getLastLogin()
{
return $this->lastLogin;
}

public function setLastLogin(\DateTime $time = null)
{
$this->lastLogin = $time;

return $this;
}


/**
* @return Collection|AddressInterface[]
*/

Loading…
Cancel
Save