public function getFiles(string $field, string $id) : ResultSetInterface
    {
        $query = $this->storageTable->find('all')
            ->where([self::FILE_STORAGE_FOREIGN_KEY => $id, 'model' => $this->table->getTable(), 'model_field' => $field])
            ->order($this->getOrderClause($field));

        $result = $query->all();
        foreach ($result as $entity) {
            $entity = $this->attachThumbnails($entity);
        }

        return $result;
    }