Remove calendar from profile

This commit is contained in:
Dennis Eichhorn 2018-09-12 22:26:47 +02:00
parent 6ad11dd3f3
commit ff1be38633
2 changed files with 0 additions and 14 deletions

View File

@ -18,7 +18,6 @@ use Modules\Admin\Models\Account;
use Modules\Admin\Models\NullAccount; use Modules\Admin\Models\NullAccount;
use Modules\Media\Models\Media; use Modules\Media\Models\Media;
use Modules\Media\Models\NullMedia; use Modules\Media\Models\NullMedia;
use Modules\Calendar\Models\Calendar;
/** /**
* Account class. * Account class.
@ -40,14 +39,11 @@ class Profile
private $location = []; private $location = [];
private $calendar = null;
public function __construct() public function __construct()
{ {
$this->image = new NullMedia(); $this->image = new NullMedia();
$this->birthday = new \DateTime('now'); $this->birthday = new \DateTime('now');
$this->account = new Account(); $this->account = new Account();
$this->calendar = new Calendar();
} }
public function getId() : int public function getId() : int
@ -65,11 +61,6 @@ class Profile
$this->location[] = $location; $this->location[] = $location;
} }
public function getCalendar()
{
return $this->calendar;
}
public function getImage() : Media public function getImage() : Media
{ {
return $this->image; return $this->image;

View File

@ -36,7 +36,6 @@ class ProfileMapper extends DataMapperAbstract
'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'], 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'],
'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'], 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'],
'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], '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, 'mapper' => MediaMapper::class,
'src' => 'profile_account_image', 'src' => 'profile_account_image',
], ],
'calendar' => [
'mapper' => CalendarMapper::class,
'src' => 'profile_account_calendar',
],
]; ];
/** /**