瀏覽代碼

Merge branch 'develop'

develop
Guillaume 2 年之前
父節點
當前提交
0e1752d6ae
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. +15
    -0
      Model/User/UserModel.php

+ 15
- 0
Model/User/UserModel.php 查看文件

@@ -82,6 +82,11 @@ abstract class UserModel implements EntityInterface, UserInterface, SovUserInter
*/
protected $ticketTypesNotification = [];

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

public function __construct()
{
$this->tickets = new ArrayCollection();
@@ -335,5 +340,15 @@ abstract class UserModel implements EntityInterface, UserInterface, SovUserInter
return $this;
}

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

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

return $this;
}
}

Loading…
取消
儲存