Since custom collections can be converted to and from array it seems reasonable to support the customCollection attribute for types that represent an array such as hash and collection. When customCollection is specified Doctrine should automatically marshal the array to/from the the specified collection class.