Aggregate values into array in DQL

No. This is not possible. Can I ask what is the goal?