From 402b559b2cbc08c42395e4eaf6463798f2c79c5d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 6 Nov 2020 11:15:12 -0500 Subject: [PATCH] Add StartTime and EndTime virtual fields for backwards compatability --- web/api/app/Model/Event.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/api/app/Model/Event.php b/web/api/app/Model/Event.php index 22a97f62f..e54fd125f 100644 --- a/web/api/app/Model/Event.php +++ b/web/api/app/Model/Event.php @@ -31,6 +31,10 @@ class Event extends AppModel { */ public $displayField = 'Name'; + public $virtualFields = array( + 'StartTime' => 'StartDateTime', + 'EndTime' => 'EndDateTime' + ); //The Associations below have been created with all possible keys, those that are not needed can be removed