private function hydrate(array $file)
    {
        $entity = new FileEntity();
        $entity->setType($file['type'])
               ->setName($file['name'])
               ->setTmpName($file['tmp_name'])
               ->setSize($file['size'])
               ->setError($file['error']);

        return $entity;
    }