From ff1be38633b7cff6327f0fb79279812bddb86940 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 12 Sep 2018 22:26:47 +0200 Subject: [PATCH] Remove calendar from profile --- Models/Profile.php | 9 --------- Models/ProfileMapper.php | 5 ----- 2 files changed, 14 deletions(-) diff --git a/Models/Profile.php b/Models/Profile.php index 569178c..4667fba 100644 --- a/Models/Profile.php +++ b/Models/Profile.php @@ -18,7 +18,6 @@ use Modules\Admin\Models\Account; use Modules\Admin\Models\NullAccount; use Modules\Media\Models\Media; use Modules\Media\Models\NullMedia; -use Modules\Calendar\Models\Calendar; /** * Account class. @@ -40,14 +39,11 @@ class Profile private $location = []; - private $calendar = null; - public function __construct() { $this->image = new NullMedia(); $this->birthday = new \DateTime('now'); $this->account = new Account(); - $this->calendar = new Calendar(); } public function getId() : int @@ -65,11 +61,6 @@ class Profile $this->location[] = $location; } - public function getCalendar() - { - return $this->calendar; - } - public function getImage() : Media { return $this->image; diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index dc3a6f3..bf95b78 100644 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -36,7 +36,6 @@ class ProfileMapper extends DataMapperAbstract 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'], 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'], 'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], - 'profile_account_calendar' => ['name' => 'profile_account_calendar', 'type' => 'int', 'internal' => 'calendar'], ]; /** @@ -54,10 +53,6 @@ class ProfileMapper extends DataMapperAbstract 'mapper' => MediaMapper::class, 'src' => 'profile_account_image', ], - 'calendar' => [ - 'mapper' => CalendarMapper::class, - 'src' => 'profile_account_calendar', - ], ]; /**