Is there any convenience method that allows me to concatenate two Doctrine ArrayCollection()? something like:
ArrayCollection()
$collection1 = new ArrayCollection
Using Clousures PHP5 > 5.3.0
$a = ArrayCollection(array(1,2,3)); $b = ArrayCollection(array(4,5,6)); $b->forAll(function($key,$value) use ($a){ $a[]=$value;return true;}); echo $a.toArray(); array (size=6) 0 => int 1 1 => int 2 2 => int 3 3 => int 4 4 => int 5 5 => int 6