for ($i = 0; $i < count($matches['id']); $i++) {
                $link = new DokumentLink();
                $link->filename = $matches['filename'][$i];
                $link->title = $matches['title'][$i];
                $link->id = intval($matches['id'][$i]);