Process parameter value working with all Doctrine collection types