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'],