dorsetdigital

DISTINCT and GROUP BY are pretty much the same thing for all intents and purposes

kinglozzer

Wait… would array_unique(array_merge($vehicles->columnUnique('YearFrom'), $vehicles->columnUnique('YearTo'))); work?

kinglozzer

No 😛 tens of thousands of DataObjects I’d have to loop over to get a list of valid years 😉

null

You're building a dropdown containing 10000 years? 🤪