Message of the day:
Welcome. Latest release: https://www.silverstripe.org/download Community Forum: https://forum.silverstripe.org Features: https://forum.silverstripe.org/c/feature-ideas Archive: https://slackarchive.silverstripe.org
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Archive temporarily at https://archive.codingplayground.nl (redirect)
1990 - 1992, it wouldn’t include
GROUP BY are pretty much the same thing for all intents and purposes
Ahh no, it won’t anyway
Possibly, but you're pulling it all into memory that way
array_unique(array_merge($vehicles->columnUnique('YearFrom'), $vehicles->columnUnique('YearTo'))); work?
Make sure the year is indexed
No 😛 tens of thousands of DataObjects I’d have to loop over to get a list of valid years 😉
That could work…
You're building a dropdown containing 10000 years? 🤪