this means it works for all PersistentCollection, as there are the only 2 types of toMany relations (and a toOne relation is not a collection). You should simply remove the exception