public function hydrate(Entity &$model)
    {
        foreach ($model->getAsserts() as $field => $asserts) {
            if ($this->app['request']->files->has($field)) {
                $file = $this->app['request']->files->get($field);

                if ($file instanceof UploadedFile) {
                    $model->dispatch('upload', [$field, $file]);
                }
            } else {
                $value = trim($this->app['request']->get($field));

                // Detect HTML fields without actual content
                if (empty(strip_tags($value))) {
                    $value = '';
                }

                $model->$field = $value;
            }
        }
    }