diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index 9ba043c9..281c9fa9 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 DateTime; + use App\Ramcar\CustomerClassification; /** @@ -184,6 +186,12 @@ class Customer */ protected $flag_dpa_consent; + // date customer was created + /** + * @ORM\Column(type="datetime") + */ + protected $date_create; + public function __construct() { $this->numbers = new ArrayCollection(); @@ -214,6 +222,8 @@ class Customer $this->flag_promo_email = false; $this->flag_promo_sms = false; $this->flag_dpa_consent = false; + + $this->date_create = new DateTime(); } public function getID()