From f4019fb42306e694a5159937eb765ee545184211 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Fri, 12 Jan 2018 15:36:27 +0800 Subject: [PATCH] Add color field in customer vehicle --- src/Entity/CustomerVehicle.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Entity/CustomerVehicle.php b/src/Entity/CustomerVehicle.php index 5f26ab23..60967653 100644 --- a/src/Entity/CustomerVehicle.php +++ b/src/Entity/CustomerVehicle.php @@ -56,6 +56,13 @@ class CustomerVehicle */ protected $model_year; + // color of customer's vehicle + /** + * @ORM\Column(type="string", length=25) + * @Assert\NotBlank() + */ + protected $color; + // vehicle status (new / second-hand) /** * @ORM\Column(type="string", length=15) @@ -154,6 +161,17 @@ class CustomerVehicle return $this->model_year; } + public function setColor($color) + { + $this->color = $color; + return $this; + } + + public function getColor() + { + return $this->color; + } + public function setStatusCondition($status_condition) { $this->status_condition = $status_condition;