From a9726eec11d092583242259aea8b88f1085ad922 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 10 May 2016 00:27:47 +0200 Subject: * switching to DTO in getCategories from CalendarFacade --- app/php/dto/CalendarGroupDTO.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/php/dto') diff --git a/app/php/dto/CalendarGroupDTO.php b/app/php/dto/CalendarGroupDTO.php index 5f83a71..7b64c6e 100644 --- a/app/php/dto/CalendarGroupDTO.php +++ b/app/php/dto/CalendarGroupDTO.php @@ -6,11 +6,13 @@ Prado::using('Application.dto.CalendarDTO'); class CalendarGroupDTO { public $Name; + public $ID; public $Priority; public $Calendars = []; public function loadRecord(Category $categoryRecord, array $calendars) { $this->Name = $categoryRecord->Name; + $this->ID = $categoryRecord->ID; $this->Priority = $categoryRecord->Priority; $this->Calendars = array_map( function($calendarRecord) { -- cgit v1.2.3