we should typehint Collection here, not ArrayCollection. do you actually need this to be a doctrine Collection or could it be any Traversable? then Traversable would be better to avoid the dependency on doctrine commons