attach a collection of files to Doctrine entities