Преглед на файлове

User : champs lastLogin

develop
Guillaume преди 2 години
родител
ревизия
f8e6f69103
променени са 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…
Отказ
Запис