Is there any convenience method that allows me to concatenate two Doctrine ArrayCollection()? something like:
ArrayCollection()
$collection1 = new ArrayCollection
Better (and working) variant for me:
$collection3 = new ArrayCollection( array_merge($collection1->toArray(), $collection2->toArray()) );