Change user_agent_type column to tinyint

[MAILPOET-3736]
This commit is contained in:
Jan Lysý
2021-08-20 11:34:17 +02:00
committed by Veljko V
parent 292f075abe
commit ee84dc382b
6 changed files with 21 additions and 21 deletions

View File

@ -44,10 +44,10 @@ class StatisticsOpenEntity {
private $userAgent;
/**
* @ORM\Column(type="string", nullable=true)
* @var string|null
* @ORM\Column(type="smallint")
* @var int
*/
private $userAgentType;
private $userAgentType = 0;
public function __construct(
NewsletterEntity $newsletter,
@ -104,11 +104,11 @@ class StatisticsOpenEntity {
$this->userAgent = $userAgent;
}
public function getUserAgentType(): ?string {
public function getUserAgentType(): int {
return $this->userAgentType;
}
public function setUserAgentType(?string $userAgentType): void {
public function setUserAgentType(int $userAgentType): void {
$this->userAgentType = $userAgentType;
}
}