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)
i’m honestly not sure why that requires a boolean param
on the plus side, I promise you’ll never forget how to use the
->distinct() function ever again 😂
And she'll be happy Monday now
only one of the biggest UK charities!
bugger! Could have kept my client happy 6 hours ago - nevermind 😄
yeah from the API docs it looks like it expects a boolean param
What, I tried but missed the true!?!?! That's Friday for you !!! lol
- return SubCategory::get()->relation('Products')->exclude(['Bespoke'=>1])->filter(['ApprovedForUse'=>1])->distinct(true);
is a method on