From 03a58ee8f7089b291f062e8055422b176805316c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Nov 2017 23:20:11 +0100 Subject: [PATCH] Fix phpstorm inspections --- Models/Collection.php | 2 +- Models/MediaMapper.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Models/Collection.php b/Models/Collection.php index c21b76e..3e81231 100644 --- a/Models/Collection.php +++ b/Models/Collection.php @@ -45,7 +45,7 @@ class Collection extends Media implements \Iterator */ public function __construct() { - $this->createdAt = new \DateTime(); + parent::__construct(); } /** diff --git a/Models/MediaMapper.php b/Models/MediaMapper.php index 1f2b7f7..80ff9fb 100644 --- a/Models/MediaMapper.php +++ b/Models/MediaMapper.php @@ -37,7 +37,6 @@ class MediaMapper extends DataMapperAbstract 'media_file' => ['name' => 'media_file', 'type' => 'string', 'internal' => 'path'], 'media_absolute' => ['name' => 'media_absolute', 'type' => 'bool', 'internal' => 'isAbsolute'], 'media_extension' => ['name' => 'media_extension', 'type' => 'string', 'internal' => 'extension'], - 'media_description' => ['name' => 'media_description', 'type' => 'string', 'internal' => 'description'], 'media_size' => ['name' => 'media_size', 'type' => 'int', 'internal' => 'size'], 'media_created_by' => ['name' => 'media_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'media_created_at' => ['name' => 'media_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],