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)
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? 🤪
SELECT ... GROUP BY ?
Just min/max would provide options like
1995 which wouldn’t return any results 😕