From 23afaade96ae37bcadd87866841761a6c5b7b0b2 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 4 Feb 2018 12:28:52 +0800 Subject: [PATCH] Add default value to customer classificiation --- src/Entity/Customer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index 68e10523..3be1623a 100644 --- a/src/Entity/Customer.php +++ b/src/Entity/Customer.php @@ -6,6 +6,8 @@ use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Validator\Constraints as Assert; +use App\Ramcar\CustomerClassification; + /** * @ORM\Entity * @ORM\Table(name="customer") @@ -95,6 +97,8 @@ class Customer $this->vehicles = new ArrayCollection(); $this->job_orders = new ArrayCollection(); + $this->customer_classification = CustomerClassification::REGULAR; + $this->flag_confirmed = false; $this->flag_mobile_app = false; }