Fix phpstorm inspections

This commit is contained in:
Dennis Eichhorn 2017-11-19 23:20:11 +01:00
parent f0a2f51a3d
commit 03a58ee8f7
2 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Collection extends Media implements \Iterator
*/
public function __construct()
{
$this->createdAt = new \DateTime();
parent::__construct();
}
/**

View File

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