|
|
@@ -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[] |
|
|
|
*/ |