From f7c9931d9f88937259421c4ff562df837acb5b98 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 28 Jan 2018 13:37:50 +0800 Subject: [PATCH] Add nullable fields to fix register bug --- src/Entity/MobileSession.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/MobileSession.php b/src/Entity/MobileSession.php index 25d6df8b..48dfcc79 100644 --- a/src/Entity/MobileSession.php +++ b/src/Entity/MobileSession.php @@ -51,13 +51,13 @@ class MobileSession // phone number /** - *@ORM\Column(type="string", length=12) + *@ORM\Column(type="string", length=12, nullable=true) */ protected $phone_number; // confirm code that we send via SMS /** - *@ORM\Column(type="string", length=6) + *@ORM\Column(type="string", length=6, nullable=true) */ protected $confirm_code;